From: J"orn Rennecke Date: Thu, 5 May 2005 21:19:19 +0000 (+0000) Subject: sh.c (sh_builtin_saveregs): Use copy_to_mode_reg and plus_constant. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d9c5aa1952f7c13f70e3ee09a4d78fbe1136902;p=gcc.git 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 From-SVN: r99287 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cbd31f0f65..e8e5775b816 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2005-05-05 J"orn Rennecke + Kaz Kojima + + * config/sh/sh.c (sh_builtin_saveregs): Use copy_to_mode_reg + and plus_constant. + 2005-05-05 Aldy Hernandez * config.gcc: Add .opt magic for the rs6000 ports. diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index e5c1dedd139..20eddb6464c 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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;