(push_secondary_reload): Use TYPE for secondary type if it is

RELOAD_FOR_{INPUT,OUTPUT}_ADDRESS.

From-SVN: r7211
This commit is contained in:
Richard Kenner 1994-05-04 17:12:27 -04:00
parent 17a0a76dd4
commit d94d2abc86
1 changed files with 6 additions and 2 deletions

View File

@ -343,11 +343,15 @@ push_secondary_reload (in_p, x, opnum, optional, reload_class, reload_mode,
enum reg_class t_class = NO_REGS;
enum machine_mode t_mode = VOIDmode;
enum insn_code t_icode = CODE_FOR_nothing;
enum reload_type secondary_type
= in_p ? RELOAD_FOR_INPUT_ADDRESS : RELOAD_FOR_OUTPUT_ADDRESS;
enum reload_type secondary_type;
int i;
int s_reload, t_reload = -1;
if (type == RELOAD_FOR_INPUT_ADDRESS || type == RELOAD_FOR_OUTPUT_ADDRESS)
secondary_type = type;
else
secondary_type = in_p ? RELOAD_FOR_INPUT_ADDRESS : RELOAD_FOR_OUTPUT_ADDRESS;
*picode = CODE_FOR_nothing;
/* If X is a pseudo-register that has an equivalent MEM (actually, if it