[Bug target/96373] SVE miscompilation on vectorized division loop, leading to FP exception
schwab@linux-m68k.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 4 15:46:39 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96373
--- Comment #5 from Andreas Schwab <schwab@linux-m68k.org> ---
> Just note that _all_ floating point operations, not just divisions, can trap
> (without fast-math). You never know if the user enabled stops for any of
> the FP exceptions (overflow, underflow, inexact, invalid op, div-by-zero).
You need #pragma STDC FENV_ACCESS ON for that, otherwise it's undefined
behaviour.
More information about the Gcc-bugs
mailing list