Add (ret int) expander so that we can at least write testcases
authorChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 15:48:00 +0000 (15:48 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 11 Aug 2003 15:48:00 +0000 (15:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7730 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index 6c5aefcf009115b6e5dcddf33337aabde1ffd9a9..75ac0157d544ed978ca9c496572cdfe11ff23f67 100644 (file)
@@ -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)]>;