PR 75964: Invalid integer ABS handling in simplify-rtx.c
authorRichard Sandiford <richard.sandiford@linaro.org>
Sat, 6 May 2017 07:44:13 +0000 (07:44 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Sat, 6 May 2017 07:44:13 +0000 (07:44 +0000)
commit2a3f79973f7ff22ab936b3919c31df5c704e1715
treede837dd67bb2740f66f8671c13d345e57e9d5e7b
parentd554bf236e760dec9f9ecf280a8f5523e3ff3aa1
PR 75964: Invalid integer ABS handling in simplify-rtx.c

RTL has no distinction between signed and unsigned values, so it
doesn't make sense to test for signed overflow.

2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
PR rtl-optimization/75964
* simplify-rtx.c (simplify_const_relational_operation): Remove
invalid handling of comparisons of integer ABS.

gcc/testsuite/
PR rtl-optimization/75964
* gcc.dg/torture/pr75964.c: New test.

From-SVN: r247719
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr75964.c [new file with mode: 0644]