]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR rtl-optimization/56195 (Error: incorrect register `%rdi' used with `l' suffix...
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Feb 2013 15:19:02 +0000 (16:19 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Feb 2013 15:19:02 +0000 (16:19 +0100)
commit5df813131d18e4db50fb4f9c940ff782b8496a94
tree91f45af991fea54d16e73e0b3d43e76d6f062c09
parent3434c119a309db4ff991d50b6ebe25a017b58cd7
re PR rtl-optimization/56195 (Error: incorrect register `%rdi' used with `l' suffix (at -O2))

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.

From-SVN: r195891
gcc/ChangeLog
gcc/lra-constraints.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr56195.c [new file with mode: 0644]