Match rotate. This does actually match the rotates in an rc5 cipher, but I

haven't seen it fire on our testsuite.

llvm-svn: 23863
This commit is contained in:
Nate Begeman 2005-10-21 06:36:18 +00:00
parent 5df0e36e98
commit fd0d55ec69
1 changed files with 3 additions and 0 deletions

View File

@ -742,6 +742,9 @@ def : Pat<(or GPRC:$in, imm:$imm),
// 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)>;