(epilogue_set_stack_ptr): New.
authorStan Cox <coxs@gnu.org>
Fri, 31 May 1996 21:14:51 +0000 (21:14 +0000)
committerStan Cox <coxs@gnu.org>
Fri, 31 May 1996 21:14:51 +0000 (21:14 +0000)
From-SVN: r12138

gcc/config/i386/i386.md

index 024b09b97279aabeb0b6d13f8a2e082404006e36..303e99ae35a592e4994dabe7451a25c2b6319290 100644 (file)
   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)]
   ""
   ""
   "*
 {
-#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;
 }")