aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-19 04:32:04 +0000
committerChris Lattner <sabre@nondot.org>2005-10-19 04:32:04 +0000
commitf6cd147471fb9a89661e2093731d6d40d4f41c7c (patch)
treec85c23b9a042894db3dfebd2da73e082b61d5bed
parent5d5a056092b9ce52009b835f47f4304be810368f (diff)
now that tblgen is smarter, use integers directly. This should help Andrew too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23818 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCInstrInfo.td5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.td b/lib/Target/PowerPC/PPCInstrInfo.td
index 3a3030a3e6..e9a55b5be2 100644
--- a/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/lib/Target/PowerPC/PPCInstrInfo.td
@@ -18,8 +18,6 @@ include "PPCInstrFormats.td"
//===----------------------------------------------------------------------===//
// PowerPC specific transformation functions and pattern fragments.
//
-def GET_ZERO : SDNodeXForm<add, [{return getI32Imm(0);}]>; // HACK
-def GET_32 : SDNodeXForm<add, [{ return getI32Imm(32);}]>; // HACK
def LO16 : SDNodeXForm<imm, [{
// Transformation function: get the low 16 bits.
@@ -712,8 +710,7 @@ def : Pat<(xor GPRC:$in, imm:$imm),
(XORIS (XORI GPRC:$in, (LO16 imm:$imm)), (HI16 imm:$imm))>;
def : Pat<(zext GPRC:$in),
- (RLDICL (OR4To8 GPRC:$in, GPRC:$in), (GET_ZERO imm:$in),
- (GET_32 imm:$in))>;
+ (RLDICL (OR4To8 GPRC:$in, GPRC:$in), 0, 32)>;
def : Pat<(anyext GPRC:$in),
(OR4To8 GPRC:$in, GPRC:$in)>;
def : Pat<(trunc G8RC:$in),