(machine_dependent_reorg): When remove SUBREG, add in

SUBREG_WORD to new register number.

From-SVN: r8778
This commit is contained in:
Jim Wilson 1995-01-20 17:23:12 -08:00
parent a7771f7854
commit 23ed92ca4c
1 changed files with 6 additions and 2 deletions

View File

@ -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,