diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-26 22:20:16 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-26 22:20:16 +0000 |
| commit | 4435b149a09c1210e52c9787b70daf21d004d1e4 (patch) | |
| tree | 4417ef337a18ffbac09cbb2b12680e9b2191bafa /llvm/lib | |
| parent | d455c36c91a0e6157dbf017c88bfb89d49ff3606 (diff) | |
| download | bcm5719-llvm-4435b149a09c1210e52c9787b70daf21d004d1e4.tar.gz bcm5719-llvm-4435b149a09c1210e52c9787b70daf21d004d1e4.zip | |
minor pattern shuffling
llvm-svn: 23458
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PowerPCInstrInfo.td | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td index 23920e1bf0a..d4d584eaf00 100644 --- a/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td +++ b/llvm/lib/Target/PowerPC/PowerPCInstrInfo.td @@ -182,7 +182,6 @@ class Pattern<dag patternToMatch, list<dag> resultInstrs> { // 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 @@ def RLDICR : MDForm_1<30, 1, // 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<(or GPRC:$in, imm:$imm), 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 :) /* |

