re PR tree-optimization/66299 (more optimize opportunity)
authorMarek Polacek <polacek@redhat.com>
Tue, 9 Jun 2015 14:24:04 +0000 (14:24 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 9 Jun 2015 14:24:04 +0000 (14:24 +0000)
commitf2e609c3e1863eb9a902cf45f5c5bbaf2e48e3cb
tree14dc03fed2ffded69aace39c98c4727955ccd703
parent6a9263f7ef63cbaa9c0a4aa98d53372721602090
re PR tree-optimization/66299 (more optimize opportunity)

PR tree-optimization/66299
* match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
patterns.

* gcc.dg/pr66299-1.c: New test.
* gcc.dg/pr66299-2.c: New test.
* gcc.dg/pr66299-3.c: New test.

From-SVN: r224283
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr66299-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr66299-2.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr66299-3.c [new file with mode: 0644]