tree-ssa-math-opts.c (do_shift_rotate): Zero bits out of type precision after operation.
authorKai Tietz <ktietz@redhat.com>
Mon, 27 Jun 2011 13:44:52 +0000 (15:44 +0200)
committerKai Tietz <ktietz@gcc.gnu.org>
Mon, 27 Jun 2011 13:44:52 +0000 (15:44 +0200)
commit5da49a9d153a00776bba423734630b8d361dc53f
tree365685b86a946b087f030f0470c455cfb6f3f5ba
parent9242213f86f6e3e4703b4fb84065608fb5a03985
tree-ssa-math-opts.c (do_shift_rotate): Zero bits out of type precision after operation.

2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
        out of type precision after operation.
        (find_bswap): Take for limit value the integer auto-
        promotion into account.

ChangeLog

2011-06-27  Kai Tietz  <ktietz@redhat.com>

        * gcc.dg/optimize-bswapdi-2.c: New test.

From-SVN: r175528
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/optimize-bswapdi-2.c [new file with mode: 0644]
gcc/tree-ssa-math-opts.c