Commit 7d9c5aa1 by J"orn Rennecke Committed by Kaz Kojima

sh.c (sh_builtin_saveregs): Use copy_to_mode_reg and plus_constant.

	* config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
	and plus_constant.

Co-Authored-By: Kaz Kojima <kkojima@gcc.gnu.org>

From-SVN: r99287
parent 78f5898b
2005-05-05 J"orn Rennecke <joern.rennecke@st.com>
Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg
and plus_constant.
2005-05-05 Aldy Hernandez <aldyh@redhat.com>
* config.gcc: Add .opt magic for the rs6000 ports.
......
......@@ -6248,10 +6248,9 @@ sh_builtin_saveregs (void)
saved).
We emit the moves in reverse order so that we can use predecrement. */
fpregs = gen_reg_rtx (Pmode);
emit_move_insn (fpregs, XEXP (regbuf, 0));
emit_insn (gen_addsi3 (fpregs, fpregs,
GEN_INT (n_floatregs * UNITS_PER_WORD)));
fpregs = copy_to_mode_reg (Pmode,
plus_constant (XEXP (regbuf, 0),
n_floatregs * UNITS_PER_WORD));
if (TARGET_SH4 || TARGET_SH2A_DOUBLE)
{
rtx mem;
......
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