https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95351
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.6.4
Target Milestone|--- |11.5
Summary|Comparison with NAN |[11/12/13/14 Regression]
|optimizes incorrectly with |Comparison with NAN
|-ffast-math disabled |optimizes incorrectly with
| |-ffast-math disabled
Known to work| |4.5.3
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Marc Glisse from comment #2)
> It might not be the issue, but merge_truthop_with_opposite_arm has a
> suspicious HONOR_NANS (type) where type is bool: the result of the
> comparison instead of one of the arguments.
I suspect that is the issue since GCC 4.5 was fine and GCC 4.6 is broken. and
r0-99565-g27d0d96a8f4064 added merge_truthop_with_opposite_arm for GCC 4.6.