re PR rtl-optimization/46804 (gfortran.dg/char_cshift_2.f90 FAILs with -fregmove)
authorJakub Jelinek <jakub@redhat.com>
Fri, 10 Dec 2010 16:40:51 +0000 (17:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 10 Dec 2010 16:40:51 +0000 (17:40 +0100)
commit638cd7aa8d843d59334eac614f6a147438ea16d2
treee5ca82aa3aba1e90db5500f99d8634be51361dd6
parentc962817c04bff076bb2e8696275bde5fc76fa233
re PR rtl-optimization/46804 (gfortran.dg/char_cshift_2.f90 FAILs with -fregmove)

PR rtl-optimization/46804
* regmove.c (optimize_reg_copy_3): Look for REG_EQUAL note
on the setter of src_reg rather than on insn.  If it is
equal to the setter's original SET_SRC, replace it with its
zero or sign extension instead of dropping it.

* gfortran.dg/pr46804.f90: New test.

From-SVN: r167695
gcc/ChangeLog
gcc/regmove.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr46804.f90 [new file with mode: 0644]