]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR rtl-optimization 61494: Preserve x-0.0 with HONOR_SNANS.
authorRoger Sayle <roger@nextmovesoftware.com>
Mon, 3 Aug 2020 12:15:58 +0000 (13:15 +0100)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:20:39 +0000 (13:20 -0300)
commit9873377c7b8beeed4b6739c17e9b3775607f0c4f
tree84675c3ccc3b0f07f00e548c4585764c977adeec
parent9bdf86599ab5f8398afd3c6db2bc7e1ff6dd99f4
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  <roger@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.
gcc/simplify-rtx.c