https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87247
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code Component|libfortran |middle-end --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there are two issues here, one is the glibc also puts the result in the wrong quadrant. The other issue is the GCC's constant folding does too. What is interesting is they both put in the same quadrant though. I cannot comment if this is a bug because I don't have a copy of the IEEE spec and/or C11 spec too.