[PATCH 2/2] MIPS: Hard-float rounding instructions support

Xi Ruoyao xry111@xry111.site
Tue Dec 26 22:50:15 GMT 2023


On Wed, 2023-12-27 at 05:50 +0800, Xi Ruoyao wrote:
> On Tue, 2023-12-26 at 17:12 -0300, Adhemerval Zanella Netto wrote:
> > Also, I see no point in implementing this optimizations with assembly where
> > a C implementation would be way simpler and generate similar code. Similar 
> > to what I did for powerpc with sysdeps/powerpc/fpu/round_to_integer.h, I 
> > implemented a similar approach for MIPS [1].  The resulting code should be 
> > similar to the assembly implementation, taking in consideration the correct 
> > fix to save/restore floating-point exceptions. I did see no math regression 
> > on cfarm23 with a glibc built with -mabi=64 -mips64r2.
> 
> Is there a micro-benchmark result on the cfarm machine?  AFAIK the FCSR
> setting instruction may be much more slower than normal instructions, so
> I'm not sure if this is really a win.

Add Jiaxun who knows MIPS much better than me.

-- 
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University


More information about the Libc-alpha mailing list