[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td

Chris Lattner lattner at cs.uiuc.edu
Mon Sep 26 15:20:28 PDT 2005



Changes in directory llvm/lib/Target/PowerPC:

PowerPCInstrInfo.td updated: 1.102 -> 1.103
---
Log message:

minor pattern shuffling


---
Diffs of the changes:  (+3 -8)

 PowerPCInstrInfo.td |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)


Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.102 llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.103
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.102	Fri Sep 23 19:41:58 2005
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.td	Mon Sep 26 17:20:16 2005
@@ -182,7 +182,6 @@
 // not needing a full list.
 class Pat<dag pattern, dag result> : Pattern<pattern, [result]>;
 
-
 //===----------------------------------------------------------------------===//
 // PowerPC specific transformation functions and pattern fragments.
 //
@@ -763,9 +762,9 @@
 // PowerPC Instruction Patterns
 //
 
-// REDUNDANT WITH INSTRUCTION DEFINITION, ONLY FOR TESTING.
-def : Pat<(sext_inreg GPRC:$in, i8),
-          (EXTSB GPRC:$in)>;
+// Arbitrary immediate support.  Implement in terms of LIS/ORI.
+def : Pat<(i32 imm:$imm),
+          (ORI (LIS (HI16 imm:$imm)), (LO16 imm:$imm))>;
           
 // or by an arbitrary immediate.
 def : Pat<(or GPRC:$in, imm:$imm),
@@ -774,10 +773,6 @@
 def : Pat<(xor GPRC:$in, imm:$imm),
           (XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
 
-// Arbitrary immediate support.
-def : Pat<(i32 imm:$imm),
-          (ORI (LIS (HI16 imm:$imm)), (LO16 imm:$imm))>;
-
 
 // Same as above, but using a temporary. FIXME: implement temporaries :)
 /*






More information about the llvm-commits mailing list