https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61494
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Roger Sayle <sa...@gcc.gnu.org>: https://gcc.gnu.org/g:919c9d4bd3db7da09061af3b6f2a9193bf7bae45 commit r11-2502-g919c9d4bd3db7da09061af3b6f2a9193bf7bae45 Author: Roger Sayle <ro...@nextmovesoftware.com> Date: Mon Aug 3 13:15:58 2020 +0100 PR rtl-optimization 61494: Preserve x-0.0 with HONOR_SNANS. The following patch avoids simplifying x-0.0 to x when -fsignaling-nans is specified, which resolves PR rtl-optimization 61494. Indeed, running the test program attached to that PR now reports no failures. 2020-08-02 Roger Sayle <ro...@nextmovesoftware.com> gcc/ChangeLog PR rtl-optimization/61494 * simplify-rtx.c (simplify_binary_operation_1) [MINUS]: Don't simplify x - 0.0 with -fsignaling-nans.