Changes in directory llvm/lib/Target/PowerPC:
PPCInstrInfo.td updated: 1.150 -> 1.151 --- Log message: Add some explicit type casts so that tblgen knows the type of the shift amount, which is not necessarily the same as the type being shifted. --- Diffs of the changes: (+5 -5) PPCInstrInfo.td | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) Index: llvm/lib/Target/PowerPC/PPCInstrInfo.td diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.150 llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.151 --- llvm/lib/Target/PowerPC/PPCInstrInfo.td:1.150 Sun Dec 4 13:01:59 2005 +++ llvm/lib/Target/PowerPC/PPCInstrInfo.td Sun Dec 4 20:34:05 2005 @@ -467,7 +467,7 @@ } def SRAWI : XForm_10<31, 824, (ops GPRC:$rA, GPRC:$rS, u5imm:$SH), "srawi $rA, $rS, $SH", IntShift, - [(set GPRC:$rA, (sra GPRC:$rS, imm:$SH))]>; + [(set GPRC:$rA, (sra GPRC:$rS, (i32 imm:$SH)))]>; def CNTLZW : XForm_11<31, 26, (ops GPRC:$rA, GPRC:$rS), "cntlzw $rA, $rS", IntGeneral, [(set GPRC:$rA, (ctlz GPRC:$rS))]>; @@ -875,14 +875,14 @@ (OR8To4 G8RC:$in, G8RC:$in)>; // SHL -def : Pat<(shl GPRC:$in, imm:$imm), +def : Pat<(shl GPRC:$in, (i32 imm:$imm)), (RLWINM GPRC:$in, imm:$imm, 0, (SHL32 imm:$imm))>; -def : Pat<(shl G8RC:$in, imm:$imm), +def : Pat<(shl G8RC:$in, (i64 imm:$imm)), (RLDICR G8RC:$in, imm:$imm, (SHL64 imm:$imm))>; // SRL -def : Pat<(srl GPRC:$in, imm:$imm), +def : Pat<(srl GPRC:$in, (i32 imm:$imm)), (RLWINM GPRC:$in, (SRL32 imm:$imm), imm:$imm, 31)>; -def : Pat<(srl G8RC:$in, imm:$imm), +def : Pat<(srl G8RC:$in, (i64 imm:$imm)), (RLDICL G8RC:$in, (SRL64 imm:$imm), imm:$imm)>; // Hi and Lo for Darwin Global Addresses. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits