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
This commit is contained in:
parent
78f5898b95
commit
7d9c5aa195
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2005-05-05 Aldy Hernandez <aldyh@redhat.com>
|
||||||
|
|
||||||
* config.gcc: Add .opt magic for the rs6000 ports.
|
* config.gcc: Add .opt magic for the rs6000 ports.
|
||||||
|
|
|
@ -6248,10 +6248,9 @@ sh_builtin_saveregs (void)
|
||||||
saved).
|
saved).
|
||||||
We emit the moves in reverse order so that we can use predecrement. */
|
We emit the moves in reverse order so that we can use predecrement. */
|
||||||
|
|
||||||
fpregs = gen_reg_rtx (Pmode);
|
fpregs = copy_to_mode_reg (Pmode,
|
||||||
emit_move_insn (fpregs, XEXP (regbuf, 0));
|
plus_constant (XEXP (regbuf, 0),
|
||||||
emit_insn (gen_addsi3 (fpregs, fpregs,
|
n_floatregs * UNITS_PER_WORD));
|
||||||
GEN_INT (n_floatregs * UNITS_PER_WORD)));
|
|
||||||
if (TARGET_SH4 || TARGET_SH2A_DOUBLE)
|
if (TARGET_SH4 || TARGET_SH2A_DOUBLE)
|
||||||
{
|
{
|
||||||
rtx mem;
|
rtx mem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue