[Bug target/111709] [13/14/15 Regression] Miscompilation of sysdeps/ieee754/dbl-64/s_fma.c since r13-1268-g8c99e307b20c50
jsm28 at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Feb 5 21:17:56 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111709
--- Comment #27 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
That's not redundant, the previous calculation is in FE_TOWARDZERO mode, before
the call to libc_feupdateenv_test. But maybe that call needs to be followed by
"a1 = math_opt_barrier (a1);" or similar to ensure the value doesn't get
wrongly reused in the new rounding mode. With a value calculated in the correct
rounding mode, the exponent should be 109, not 108.
More information about the Gcc-bugs
mailing list