PR rtl-optimization/64316
commita46c112cb080a59e0f4a1a60a24f62b8551f5866
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2014 20:10:45 +0000 (15 20:10 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Dec 2014 20:10:45 +0000 (15 20:10 +0000)
treeefca2aa0c015aa9739b165ce358816d2fd54c6e2
parent3130aced56fbe6671146fec8b84cf888ecfea122
PR rtl-optimization/64316
* simplify-rtx.c (simplify_relational_operation_1): For
(eq/ne (and x y) x) and (eq/ne (and x y) y) optimizations use
CONST0_RTX instead of const0_rtx.

* gcc.dg/pr64316.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218762 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr64316.c [new file with mode: 0644]