[Bug middle-end/107117] "atan2" fails to set the floating-point inexact exception due to constant folding, in some cases

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 6 09:54:37 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107117

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Btw, we only avoid inexact constant foldings for -frounding-math, not with
-ftrapping-math (which guards FP exception state).  See do_mpfr_ckconv.
So we could do better here if we want (but then if at runtime the inexact
exception is raised is unspecified).


More information about the Gcc-bugs mailing list