re PR rtl-optimization/54457 ([x32] Fail to combine 64bit index + constant)
authorUros Bizjak <uros@gcc.gnu.org>
Mon, 1 Oct 2012 15:00:41 +0000 (17:00 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 1 Oct 2012 15:00:41 +0000 (17:00 +0200)
commit992103ad6991bfbd908d10b18b3fba28196ff7a8
treecc5f6d3ec972893a489639fb23536628899e340c
parent4f39564266a2c44145e02cda4effd42a33cf66e9
re PR rtl-optimization/54457 ([x32] Fail to combine 64bit index + constant)

        PR rtl-optimization/54457
        * simplify-rtx.c (simplify_subreg):
Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
      to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
the outer subreg is effectively a truncation to the original mode M.

testsuite/ChangeLog:

        PR rtl-optimization/54457
        * gcc.target/i386/pr54457.c: New test.

From-SVN: r191928
gcc/ChangeLog
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr54457.c [new file with mode: 0644]