re PR tree-optimization/66423 (a % (1 << b) no longer gets folded to a & (1 << b...
authorRichard Biener <rguenther@suse.de>
Tue, 9 Jun 2015 12:31:43 +0000 (12:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 9 Jun 2015 12:31:43 +0000 (12:31 +0000)
commit4ab1e111ef0669bbcbd87a5396d2d209c7e55948
tree5f7991776af8f2b6de04c999982dd08a884cd6bd
parent9aa5f7ec0c0c4045d2a346c4aa90f36642fbb7af
re PR tree-optimization/66423 (a % (1 << b) no longer gets folded to a & (1 << b) for unsigned a)

2015-06-09  Richard Biener  <rguenther@suse.de>

PR middle-end/66423
* match.pd: Handle A % (unsigned)(1 << B).

* gcc.dg/fold-modpow2.c: New testcase.

From-SVN: r224279
gcc/ChangeLog
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-modpow2.c [new file with mode: 0644]