aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-11 15:48:00 +0000
committerChris Lattner <sabre@nondot.org>2003-08-11 15:48:00 +0000
commite7e33c054364c0b2a6c5bd68076de5d8db5be0e7 (patch)
tree03943bde9106f69adf753b175c895228c82c87a5
parent3eda2eb23eaceed2c1c242fdd71961572f0f7a91 (diff)
Add (ret int) expander so that we can at least write testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7730 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86InstrInfo.td9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrInfo.td b/lib/Target/X86/X86InstrInfo.td
index 6c5aefcf00..75ac0157d5 100644
--- a/lib/Target/X86/X86InstrInfo.td
+++ b/lib/Target/X86/X86InstrInfo.td
@@ -430,3 +430,12 @@ def FUCOMPPr : X86Inst<"fucompp", 0xE9, RawFrm , ArgF80>, DA, Imp<[ST0],[]>;
def FNSTSWr8 : X86Inst<"fnstsw" , 0xE0, RawFrm , ArgF80>, DF, Imp<[],[AX]>; // AX = fp flags
def FNSTCWm16 : X86Inst<"fnstcw" , 0xD9, MRMS7m , Arg16 >; // [mem16] = X87 control world
def FLDCWm16 : X86Inst<"fldcw" , 0xD9, MRMS5m , Arg16 >; // X87 control world = [mem16]
+
+
+//===----------------------------------------------------------------------===//
+// Instruction Expanders
+//
+
+def RET_R32 : Expander<(ret R32:$reg),
+ [(MOVrr32 EAX, R32:$reg),
+ (RET)]>;