glibc/sysdeps/x86/fpu
Joseph Myers b26901b26e Fix sysdeps/x86/fpu/s_ffma.c for 32-bit FMA processor case
It turns out the __SSE2_MATH__ conditional in sysdeps/x86/fpu/s_ffma.c
does not cover all cases where the x86 fenv_private.h macros might
manipulate one of the SSE and 387 floating-point state, while the
actual fma implementation uses the other.  Specifically, in the 32-bit
case, with a compiler not defaulting to -mfpmath=sse, but testing on a
processor with hardware FMA support, the multiarch fma function
implementations will end up using SSE, while the fenv_private.h macros
will use the 387 state for double.  Change the conditional to use the
default macros rather than the optimized ones in all cases except when
the compiler inlines an fma instruction (in which case, since all
those instructions are SSE instructions and -mfpmath=sse must be in
effect for them to be inlined, the optimized macros will only use the
SSE state and it's OK for them to only use the SSE state).

Tested for x86_64 and x86.  H.J. reports in
<https://sourceware.org/pipermail/libc-alpha/2021-September/131367.html>
that it fixes the problems he observed.
2021-09-24 17:59:22 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
finclude Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
e_sqrtf128.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
e_sqrtl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fenv_private.h Split fenv_private.h out of math_private.h more consistently. 2018-08-28 20:48:49 +00:00
fix-fp-int-compare-invalid.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
math_private.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
math-barriers.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
nan-pseudo-number.h Drop nan-pseudo-number.h usage from tests 2021-01-04 20:49:56 +05:30
powl_helper.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_ffma.c Fix sysdeps/x86/fpu/s_ffma.c for 32-bit FMA processor case 2021-09-24 17:59:22 +00:00
s_fpclassifyl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_isnanl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_sincosf_data.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sfp-machine.h Add some spaces before '('. 2019-02-27 13:55:45 +00:00
sincosf_poly.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-clear-sse.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-sse-2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-sse.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-x87.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-flt-eval-method-387.c Fix x86_64 -mfpmath=387 float_t, double_t (bug 20787). 2016-11-23 17:56:31 +00:00
test-flt-eval-method-sse.c Fix x86_64 -mfpmath=387 float_t, double_t (bug 20787). 2016-11-23 17:56:31 +00:00
test-math-vector-sincos.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00