[Libre-soc-isa] [Bug 905] create Scalar reg access encoding (SVP64-Single)

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Sun Sep 11 14:52:43 BST 2022


--- Comment #12 from Jacob Lifshay <programmerjake at gmail.com> ---
(In reply to Jacob Lifshay from comment #11)
> (In reply to Luke Kenneth Casson Leighton from comment #10)
> > (In reply to Jacob Lifshay from comment #8)
> > 
> > > i meant to saturate float to the range of those int types, not to convert to
> > > an int and back. e.g. 23.5 saturating to u8's range is 23.5, but 300.25 goes
> > > to 255.0.
> > 
> > *click*. using dest elwidth.
> *not* using dest elwid (unless it's repurposed for this and not elwid when
> saturation is enabled). if you have a f32 you may want to saturate to u16
> range with a f32 result...

actually, if there's room, adding that to svp64 for saturation (changing dest
elwid to instead be range to saturate to when saturation is enabled for fp
dests) is imho a good idea! just make sure you can still saturate to 0.0 to 1.0
with fp destination type different than src type -- iirc a/v needs that.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Libre-SOC-ISA mailing list