[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.td
Nate Begeman
natebegeman at mac.com
Thu Oct 20 23:36:29 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.131 -> 1.132
---
Log message:
Match rotate. This does actually match the rotates in an rc5 cipher, but I
haven't seen it fire on our testsuite.
---
Diffs of the changes: (+3 -0)
PPCInstrInfo.td | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.131 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.132
--- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.131 Thu Oct 20 02:51:08 2005
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Fri Oct 21 01:36:18 2005
@@ -742,6 +742,9 @@
// XOR an arbitrary immediate.
def : Pat<(xor GPRC:$in, imm:$imm),
(XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
+def : Pat<(or (shl GPRC:$rS, GPRC:$rB),
+ (srl GPRC:$rS, (sub 32, GPRC:$rB))),
+ (RLWNM GPRC:$rS, GPRC:$rB, 0, 31)>;
def : Pat<(zext GPRC:$in),
(RLDICL (OR4To8 GPRC:$in, GPRC:$in), 0, 32)>;
More information about the llvm-commits
mailing list