fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for nonnegative values...
authorJames A. Morrison <phython@gcc.gnu.org>
Sat, 18 Jun 2005 19:57:12 +0000 (19:57 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Sat, 18 Jun 2005 19:57:12 +0000 (19:57 +0000)
commit2d9474dfd2b300d6a10b541ef5a282759a1ca190
tree9030eac2ba4b6f77300c26c535cf1365cacfaf7f
parent5190a458bbace7bd99887361bc7e9f05112908dd
fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for nonnegative values of X.

2005-06-18  James A. Morrison  <phython@gcc.gnu.org>

        * fold_const (fold_binary): Fold X % (2**N) to X & (2**N - 1) for
        nonnegative values of X.

From-SVN: r101163
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/fold-mod-1.c [new file with mode: 0644]