PR middle-end/84834
commit9859f66244f63767b2625c1d543e291f30dd2773
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 08:12:59 +0000 (13 08:12 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Mar 2018 08:12:59 +0000 (13 08:12 +0000)
treec36e6e8944f9cee6d2772d4dc9cc1540c2728783
parent30426868220ad3b82e08429f56ed2d05d6411c43
PR middle-end/84834
* match.pd ((A & C) != 0 ? D : 0): Use INTEGER_CST@2 instead of
integer_pow2p@2 and test integer_pow2p in condition.
(A < 0 ? C : 0): Similarly for @1.

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

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