summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-11 23:17:16 +0000
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>2005-11-11 23:17:16 +0000
commitd4b16cebcdc61fcee2e26f9bc09abf7c40cffc39 (patch)
tree7e704d4dbdfe310631104e8df502856ebd87d948 /gcc/reload.c
parent9d03a48fea2328090113f17e5f9adf5fbc04d885 (diff)
downloadgcc-d4b16cebcdc61fcee2e26f9bc09abf7c40cffc39.tar.gz
PR middle-end/24750
* reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND, ZERO_EXTEND>: New cases. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index e55bf34c436..0503f5a2eef 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -5695,6 +5695,24 @@ find_reloads_address_1 (enum machine_mode mode, rtx x, int context,
}
return 0;
+ case TRUNCATE:
+ case SIGN_EXTEND:
+ case ZERO_EXTEND:
+ /* Look for parts to reload in the inner expression and reload them
+ too, in addition to this operation. Reloading all inner parts in
+ addition to this one shouldn't be necessary, but at this point,
+ we don't know if we can possibly omit any part that *can* be
+ reloaded. Targets that are better off reloading just either part
+ (or perhaps even a different part of an outer expression), should
+ define LEGITIMIZE_RELOAD_ADDRESS. */
+ find_reloads_address_1 (GET_MODE (XEXP (x, 0)), XEXP (x, 0),
+ context, &XEXP (x, 0), opnum,
+ type, ind_levels, insn);
+ push_reload (x, NULL_RTX, loc, (rtx*) 0,
+ context_reg_class,
+ GET_MODE (x), VOIDmode, 0, 0, opnum, type);
+ return 1;
+
case MEM:
/* This is probably the result of a substitution, by eliminate_regs, of
an equivalent address for a pseudo that was not allocated to a hard