[Bug target/96793] __builtin_floor produces wrong result when rounding direction is FE_DOWNWARD

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Aug 26 10:46:42 GMT 2020


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-08-26
                 CC|                            |uros at gcc dot gnu.org
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
          Component|c                           |target
             Target|                            |x86_64-*-* i?86-*-*

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  Looks like the inline-expanded sequence is off with -frounding-math
(we also inline expand at -O0 but not -Os which is somewhat surprising).


More information about the Gcc-bugs mailing list