PR rtl-optimization/56195
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Feb 2013 15:19:02 +0000 (15:19 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Feb 2013 15:19:02 +0000 (15:19 +0000)
commit5ef30aea284c2a61df00aef66e08ffa578ff774c
tree91f45af991fea54d16e73e0b3d43e76d6f062c09
parentd8daa19e9dc86a0168e3db0572882c94f6ca7d64
PR rtl-optimization/56195
* lra-constraints.c (get_reload_reg): Don't reuse regs
if they have smaller mode than requested, if they have
wider mode than requested, try to return a SUBREG.

* gcc.dg/torture/pr56195.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195891 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/lra-constraints.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr56195.c [new file with mode: 0644]