PR rtl-optimization/68376
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Dec 2015 16:11:49 +0000 (16:11 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 10 Dec 2015 16:11:49 +0000 (16:11 +0000)
commitb0e1d3d5c2564803131a36dbc554c98aa7acce02
tree4072fe3ed6ebc15cd4117e4e6edf78c9e625fc39
parentd3960aae3c1759da66e4ae1c6e864d505b20acfb
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231526 138bc75d-0d04-0410-961f-82ee72b054a4
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]