2005-06-12 James A. Morrison <phython@gcc.gnu.org>
commitd810c37d467da842d0510d0e5d9b3be7e0741a73
authorphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jun 2005 08:03:23 +0000 (12 08:03 +0000)
committerphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 12 Jun 2005 08:03:23 +0000 (12 08:03 +0000)
tree341f5a35ba0116afe7ce890b2b5c25eed5beff64
parentcb18759a98a77b3004b2d0b4633ab59f9fdfae43
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).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100853 138bc75d-0d04-0410-961f-82ee72b054a4
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]