Commit b6983ae3 by Jim Wilson

(emit_reload_insns): Use gen_lowpart_common to change mode of reloadreg.

From-SVN: r3031
parent dca52d80
...@@ -4861,7 +4861,7 @@ emit_reload_insns (insn) ...@@ -4861,7 +4861,7 @@ emit_reload_insns (insn)
then load RELOADREG from OLDEQUIV. */ then load RELOADREG from OLDEQUIV. */
if (GET_MODE (reloadreg) != mode) if (GET_MODE (reloadreg) != mode)
reloadreg = gen_rtx (REG, mode, REGNO (reloadreg)); reloadreg = gen_lowpart_common (mode, reloadreg);
while (GET_CODE (oldequiv) == SUBREG && GET_MODE (oldequiv) != mode) while (GET_CODE (oldequiv) == SUBREG && GET_MODE (oldequiv) != mode)
oldequiv = SUBREG_REG (oldequiv); oldequiv = SUBREG_REG (oldequiv);
if (GET_MODE (oldequiv) != VOIDmode if (GET_MODE (oldequiv) != VOIDmode
...@@ -5366,7 +5366,7 @@ emit_reload_insns (insn) ...@@ -5366,7 +5366,7 @@ emit_reload_insns (insn)
} }
if (GET_MODE (reloadreg) != mode) if (GET_MODE (reloadreg) != mode)
reloadreg = gen_rtx (REG, mode, REGNO (reloadreg)); reloadreg = gen_lowpart_common (mode, reloadreg);
#ifdef SECONDARY_OUTPUT_RELOAD_CLASS #ifdef SECONDARY_OUTPUT_RELOAD_CLASS
......
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