[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 11 10:49:00 PDT 2003


Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.7 -> 1.8

---
Log message:

Add (ret int) expander so that we can at least write testcases


---
Diffs of the changes:

Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.7 llvm/lib/Target/X86/X86InstrInfo.td:1.8
--- llvm/lib/Target/X86/X86InstrInfo.td:1.7	Mon Aug 11 10:23:25 2003
+++ llvm/lib/Target/X86/X86InstrInfo.td	Mon Aug 11 10:48:00 2003
@@ -430,3 +430,12 @@
 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)]>;





More information about the llvm-commits mailing list