re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux-gnu)
authorJakub Jelinek <jakub@redhat.com>
Thu, 19 Nov 2015 08:49:59 +0000 (09:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 19 Nov 2015 08:49:59 +0000 (09:49 +0100)
commitdfc3d7a8a25f7235578a4f4547aa95dacf53fcb6
tree47232c094e52e451e75dcf381b4992ec2a034aae
parentbb35ccb1efb2c91d1eab17fc4fb26c8b2f32ebeb
re PR rtl-optimization/68376 (wrong code at -O1 and above on x86_64-linux-gnu)

PR rtl-optimization/68376
* ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.

* gcc.c-torture/execute/pr68376-1.c: New test.
* gcc.c-torture/execute/pr68376-2.c: New test.

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