diff options
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 46f29a0..3ad2a7f 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -1460,12 +1460,21 @@ push_reload (in, out, inloc, outloc, class, && GET_MODE_SIZE (inmode) <= GET_MODE_SIZE (GET_MODE (XEXP (note, 0))) && HARD_REGNO_MODE_OK (regno, inmode) && GET_MODE_SIZE (outmode) <= GET_MODE_SIZE (GET_MODE (XEXP (note, 0))) - && HARD_REGNO_MODE_OK (regno, outmode) - && TEST_HARD_REG_BIT (reg_class_contents[(int) class], regno) - && !fixed_regs[regno]) + && HARD_REGNO_MODE_OK (regno, outmode)) { - rld[i].reg_rtx = gen_rtx_REG (inmode, regno); - break; + int offs; + int nregs = HARD_REGNO_NREGS (regno, inmode); + for (offs = 0; offs < nregs; offs++) + if (fixed_regs[regno + offs] + || ! TEST_HARD_REG_BIT (reg_class_contents[(int) class], + regno + offs)) + break; + + if (offs == nregs) + { + rld[i].reg_rtx = gen_rtx_REG (inmode, regno); + break; + } } } |