aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Cox <coxs@gnu.org>1996-05-22 15:12:28 +0000
committerStan Cox <coxs@gnu.org>1996-05-22 15:12:28 +0000
commit6cd96118eaa94a2bdc02c9bee3e6f3f867b7e518 (patch)
treeb08b320220ace557c9be505fda66459db2fe63b7
parentc5ad722c6141a81536129a0393b588e940210d2a (diff)
downloadgcc-6cd96118eaa94a2bdc02c9bee3e6f3f867b7e518.zip
gcc-6cd96118eaa94a2bdc02c9bee3e6f3f867b7e518.tar.gz
gcc-6cd96118eaa94a2bdc02c9bee3e6f3f867b7e518.tar.bz2
(return_pop_internal): new pattern.
(pop): disable emitting of bogus move instruction. From-SVN: r12074
-rw-r--r--gcc/config/i386/i386.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index 3d35f04..024b09b 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -5997,6 +5997,12 @@
"reload_completed"
"ret")
+(define_insn "return_pop_internal"
+ [(return)
+ (use (match_operand:SI 0 "const_int_operand" ""))]
+ "reload_completed"
+ "ret %0")
+
(define_insn "nop"
[(const_int 0)]
""
@@ -6072,12 +6078,14 @@
""
"*
{
+#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;
}")