(emit_reload_insns): Use gen_lowpart_common to change mode of reloadreg.
authorJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Dec 1992 22:32:16 +0000 (14:32 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 31 Dec 1992 22:32:16 +0000 (14:32 -0800)
From-SVN: r3031

gcc/reload1.c

index 3af03a22bf5be4c9e18ec8b767a8042af0c79467..e40fd50823ed4cf5c07d8c58907189e512f92da2 100644 (file)
@@ -4861,7 +4861,7 @@ emit_reload_insns (insn)
             then load RELOADREG from OLDEQUIV.  */
 
          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)
            oldequiv = SUBREG_REG (oldequiv);
          if (GET_MODE (oldequiv) != VOIDmode
@@ -5366,7 +5366,7 @@ emit_reload_insns (insn)
            }
 
          if (GET_MODE (reloadreg) != mode)
-           reloadreg = gen_rtx (REG, mode, REGNO (reloadreg));
+           reloadreg = gen_lowpart_common (mode, reloadreg);
 
 #ifdef SECONDARY_OUTPUT_RELOAD_CLASS