Commit 26f1a00e by Richard Kenner

(subst_reloads): Don't use gen_lowpart_common to get reload register

into proper mode.

From-SVN: r4854
parent bc0776c6
......@@ -4659,9 +4659,11 @@ subst_reloads ()
if (reloadreg)
{
/* Encapsulate RELOADREG so its machine mode matches what
used to be there. */
used to be there. Note that gen_lowpart_common will
do the wrong thing if RELOADREG is multi-word. RELOADREG
will always be a REG here. */
if (GET_MODE (reloadreg) != r->mode && r->mode != VOIDmode)
reloadreg = gen_lowpart_common (r->mode, reloadreg);
reloadreg = gen_rtx (REG, r->mode, REGNO (reloadreg));
/* If we are putting this into a SUBREG and RELOADREG is a
SUBREG, we would be making nested SUBREGs, so we have to fix
......
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