Commit 57458e8a by DJ Delorie Committed by DJ Delorie

reload.c (find_reloads): Also check that all of a multi-reg value is in the class.

* reload.c (find_reloads): Also check that all of a multi-reg
value is in the class.

From-SVN: r66366
parent c4dec8d5
2003-05-01 DJ Delorie <dj@redhat.com>
* reload.c (find_reloads): Also check that all of a multi-reg
value is in the class.
2003-05-01 Nathan Sidwell <nathan@codesourcery.com> 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
* scan.h (lineno): Revert the rename here. * scan.h (lineno): Revert the rename here.
......
...@@ -4346,8 +4346,18 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -4346,8 +4346,18 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
if (regno < FIRST_PSEUDO_REGISTER if (regno < FIRST_PSEUDO_REGISTER
&& TEST_HARD_REG_BIT (reg_class_contents[rld[i].class], regno) && TEST_HARD_REG_BIT (reg_class_contents[rld[i].class], regno)
&& HARD_REGNO_MODE_OK (regno, rld[i].mode)) && HARD_REGNO_MODE_OK (regno, rld[i].mode))
{
int nr = HARD_REGNO_NREGS (regno, rld[i].mode);
int ok = 1, nri;
for (nri = 1; nri < nr; nri ++)
if (! TEST_HARD_REG_BIT (reg_class_contents[rld[i].class], regno + nri))
ok = 0;
if (ok)
rld[i].reg_rtx = dest; rld[i].reg_rtx = dest;
} }
}
return retval; return retval;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment