(machine_dependent_reorg): When remove SUBREG, add in
SUBREG_WORD to new register number. From-SVN: r8778
This commit is contained in:
parent
a7771f7854
commit
23ed92ca4c
|
@ -1961,10 +1961,14 @@ machine_dependent_reorg (first)
|
|||
if (mode == SImode && hi_const (src))
|
||||
{
|
||||
/* This is an HI source, clobber the dest to get the mode right too */
|
||||
int offset = 0;
|
||||
mode = HImode;
|
||||
while (GET_CODE (dst) == SUBREG)
|
||||
dst = SUBREG_REG (dst);
|
||||
dst = gen_rtx (REG, HImode, REGNO (dst));
|
||||
{
|
||||
offset += SUBREG_WORD (dst);
|
||||
dst = SUBREG_REG (dst);
|
||||
}
|
||||
dst = gen_rtx (REG, HImode, REGNO (dst) + offset);
|
||||
}
|
||||
lab = add_constant (src, mode);
|
||||
newsrc = gen_rtx (MEM, mode,
|
||||
|
|
Loading…
Reference in New Issue