[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 20 09:53:01 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.198 -> 1.199
---
Log message:
Fix the pattern for VADDUWM, add i32 splat
---
Diffs of the changes: (+4 -1)
PPCInstrInfo.td | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.198 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.199
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.198 Mon Mar 20 02:14:16 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Mon Mar 20 11:51:58 2006
@@ -972,7 +972,7 @@
[(set VRRC:$vD, (fadd VRRC:$vA, VRRC:$vB))]>;
def VADDUWM : VXForm_1<128, (ops VRRC:$vD, VRRC:$vA, VRRC:$vB),
"vadduwm $vD, $vA, $vB", VecGeneral,
- [(set VRRC:$vD, (add VRRC:$vA, VRRC:$vB))]>;
+ [(set VRRC:$vD, (add (v4i32 VRRC:$vA), VRRC:$vB))]>;
def VCFSX : VXForm_1<842, (ops VRRC:$vD, u5imm:$UIMM, VRRC:$vB),
"vcfsx $vD, $vB, $UIMM", VecFP,
[]>;
@@ -1178,6 +1178,9 @@
(v16i8 (LVX xoaddr:$src))>;
+def : Pat<(vector_shuffle (v4i32 VRRC:$vB), (undef), VSPLT_shuffle_mask:$UIMM),
+ (v4i32 (VSPLTW VSPLT_shuffle_mask:$UIMM, VRRC:$vB))>;
+
def : Pat<(PPCvperm (v4i32 VRRC:$vA), VRRC:$vB, VRRC:$vC),
(v4i32 (VPERM VRRC:$vA, VRRC:$vB, VRRC:$vC))>;
More information about the llvm-commits
mailing list