[Libre-soc-isa] [Bug 923] we missed some important fp ops

bugzilla-daemon at libre-soc.org bugzilla-daemon at libre-soc.org
Thu Sep 8 22:08:46 BST 2022


https://bugs.libre-soc.org/show_bug.cgi?id=923

--- Comment #5 from Luke Kenneth Casson Leighton <lkcl at lkcl.net> ---
(In reply to Jacob Lifshay from comment #3)
> (In reply to Luke Kenneth Casson Leighton from comment #2)
> > (In reply to Jacob Lifshay from comment #1)
> > > technically there's also x86's maxss operations, they implement the C
> > > function:
> > > float f(float a, float b) {
> > >     return a < b ? a : b;
> > > }
> > 
> > as best i can tell that's fsel - p168 v3.0B 4.6.9
> 
> it isn't actually, x86 minss/maxss compare the inputs with each other, not
> against zero.

ahh yes.  sigh.  ok. let's take a look and see if the others are there.(In
reply to Jacob Lifshay from comment #4)
> (In reply to Jacob Lifshay from comment #0)
> > reading through the opencl list of ops, I realized we forgot to add some fp
> > ops:
> > fmax
> > fmin
> > fmod
> > maxmag
> > minmag
> > remainder
> 
> i'd like to add these new ops as part of doing the initial implementation of
> fptrans, there's space.
> 
> what do you think?

yes good idea, search for them first though, and in VSX as well,
the section has to say "this is in VSX as {vxxxxxx} but not in scalar"

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


More information about the Libre-SOC-ISA mailing list