re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux-gnu)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Dec 2015 16:11:49 +0000 (17:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Dec 2015 16:11:49 +0000 (17:11 +0100)
commit9dd920ab7090041bc4983209b0807c69339299f8
tree4072fe3ed6ebc15cd4117e4e6edf78c9e625fc39
parent64a948e9c2c34aea10e5a995f9e67bb6325ca7e8
re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux-gnu)

PR rtl-optimization/68376
PR rtl-optimization/68670
* ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
or > -1 conditions regardless of negate, and disallow
all other conditions.

* gcc.c-torture/execute/pr68376-2.c (f5, f6, f7, f8): New
tests.
(main): Call them.
* gcc.dg/pr68670-1.c: New test.
* gcc.dg/pr68670-2.c: New test.

From-SVN: r231526
gcc/ChangeLog
gcc/ifcvt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr68376-2.c
gcc/testsuite/gcc.dg/pr68670-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr68670-2.c [new file with mode: 0644]