diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-08-26 10:56:12 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-08-26 10:56:12 +0000 |
commit | 50fad108e70c4b9a4334bb7891b882a06d55a3f1 (patch) | |
tree | a7250e4e0257c92dbe0df2e4b2adcd5e6ab9fa71 /gcc/reload.c | |
parent | c2e053d8c54f90d835141af958f204ca11291ff0 (diff) | |
download | gcc-50fad108e70c4b9a4334bb7891b882a06d55a3f1.tar.gz |
(push_secondary_reload): If X is a paradoxical SUBREG, get mode and
thing to reload from inside.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10283 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index b33eb4babfc..4f0a9ae2cf8 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -356,6 +356,16 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode, *picode = CODE_FOR_nothing; + /* If X is a paradoxical SUBREG, use the inner value to determine both the + mode and object being reloaded. */ + if (GET_CODE (x) == SUBREG + && (GET_MODE_SIZE (GET_MODE (x)) + > GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))) + { + x = SUBREG_REG (x); + reload_mode = GET_MODE (x); + } + /* If X is a pseudo-register that has an equivalent MEM (actually, if it is still a pseudo-register by now, it *must* have an equivalent MEM but we don't want to assume that), use that equivalent when seeing if |