re PR tree-optimization/84235 (Miscompilation of floating point code by dom2)
authorJakub Jelinek <jakub@redhat.com>
Wed, 7 Feb 2018 08:29:58 +0000 (09:29 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 7 Feb 2018 08:29:58 +0000 (09:29 +0100)
commit40ff1a2d1dd5ab23649e2df91a11534f3e654ace
tree4fc1f3a5020d94acba63a9414fcc4d840a1178d1
parent84c71bb8ecc84f6ca5cbc56786b9ba74eb05057e
re PR tree-optimization/84235 (Miscompilation of floating point code by dom2)

PR tree-optimization/84235
* tree-ssa-scopedtables.c
(avail_exprs_stack::simplify_binary_operation): Fir MINUS_EXPR, punt
if the subtraction is performed in floating point type where NaNs are
honored.  For *DIV_EXPR, punt for ALL_FRACT_MODE_Ps where we can't
build 1.  Formatting fix.

* gcc.c-torture/execute/ieee/pr84235.c: New test.

From-SVN: r257437
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/ieee/pr84235.c [new file with mode: 0644]
gcc/tree-ssa-scopedtables.c