diff options
author | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-02-27 17:06:02 +0000 |
---|---|---|
committer | vmakarov <vmakarov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-02-27 17:06:02 +0000 |
commit | 1c1417f13189be7dae5fb25b2ae55ec0371b6d2f (patch) | |
tree | 9dd27f9347e5a8a46c1df16eed461f0493922dde /gcc/lra.c | |
parent | 5e5848635df0cfa2d943b91962036620e88afdb8 (diff) | |
download | gcc-1c1417f13189be7dae5fb25b2ae55ec0371b6d2f.tar.gz |
2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
PR target/59222
* lra.c (lra_emit_add): Check SUBREG too.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208201 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lra.c')
-rw-r--r-- | gcc/lra.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lra.c b/gcc/lra.c index d052b363ce9..77074e29654 100644 --- a/gcc/lra.c +++ b/gcc/lra.c @@ -340,8 +340,9 @@ lra_emit_add (rtx x, rtx y, rtx z) base = a1; index = a2; } - if (! REG_P (base) - || (index != NULL_RTX && ! REG_P (index)) + if (! (REG_P (base) || GET_CODE (base) == SUBREG) + || (index != NULL_RTX + && ! (REG_P (index) || GET_CODE (index) == SUBREG)) || (disp != NULL_RTX && ! CONSTANT_P (disp)) || (scale != NULL_RTX && ! CONSTANT_P (scale))) { |