On Wed, 23 Jan 2019, H.J. Lu wrote: > + fesetround (FE_DOWNWARD); > + float fs = s128; > + if (fs != -0x1p+127) > + abort (); > + double ds = s128; > + if (ds != -0x1p+127) > + abort ();
This definitely needs #ifdef FE_DOWNWARD; even just limited to glibc configurations, there are soft-float 64-bit configurations with no support for rounding modes other than to-nearest. Likewise for the other tests using rounding modes other than FE_TONEAREST. OK with that change. It's possible it will turn out a new effective-target is needed for fenv.h support, if there are still configurations people are testing with that lack fenv.h at all. -- Joseph S. Myers jos...@codesourcery.com