re PR tree-optimization/14796 ([tree-ssa] combine two shifts into one)
authorJames A. Morrison <phython@gcc.gnu.org>
Sun, 12 Jun 2005 08:03:23 +0000 (08:03 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Sun, 12 Jun 2005 08:03:23 +0000 (08:03 +0000)
commite3d025cb0d1ff48a9c6b34fd134350368105e695
tree341f5a35ba0116afe7ce890b2b5c25eed5beff64
parent4ae234b0a1972354d8f6e526cfca999a82ade2e6
re PR tree-optimization/14796 ([tree-ssa] combine two shifts into one)

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

        PR tree-optimization/14796
        * fold-const.c (fold_binary): Transform (A >> C) << C into
        one BIT_AND_EXPR.
        <shift>: Transform (A OP c1) OP c2 into A OP (c1 + c2).

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