From bca7cce204332f339ef61ce85076f3ef9b73ac1b Mon Sep 17 00:00:00 2001 From: Stan Cox Date: Fri, 31 May 1996 21:14:51 +0000 Subject: [PATCH] (epilogue_set_stack_ptr): New. From-SVN: r12138 --- gcc/config/i386/i386.md | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md index 024b09b9727..303e99ae35a 100644 --- a/gcc/config/i386/i386.md +++ b/gcc/config/i386/i386.md @@ -6066,6 +6066,20 @@ DONE; }") +(define_insn "epilogue_set_stack_ptr" + [(set (reg:SI 7) (reg:SI 6)) + (clobber (reg:SI 6))] + "" + "* +{ + rtx xops [2]; + + xops[0] = frame_pointer_rtx; + xops[1] = stack_pointer_rtx; + output_asm_insn (AS2 (mov%L0,%0,%1), xops); + RET; +}") + (define_insn "leave" [(const_int 2)] "" @@ -6078,14 +6092,6 @@ "" "* { -#if 0 - rtx xops [2]; - - xops[0] = frame_pointer_rtx; - xops[1] = stack_pointer_rtx; - if (operands[0] == frame_pointer_rtx) - output_asm_insn (AS2 (mov%L0,%0,%1), xops); -#endif output_asm_insn (AS1 (pop%L0,%P0), operands); RET; }") -- 2.30.2