[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstr64Bit.td
Chris Lattner
sabre at nondot.org
Wed Dec 6 13:46:30 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCInstr64Bit.td updated: 1.32 -> 1.33
---
Log message:
implement sextinreg i8->i64 and i16->i64
---
Diffs of the changes: (+8 -0)
PPCInstr64Bit.td | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/Target/PowerPC/PPCInstr64Bit.td
diff -u llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.32 llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.33
--- llvm/lib/Target/PowerPC/PPCInstr64Bit.td:1.32 Thu Nov 16 16:43:37 2006
+++ llvm/lib/Target/PowerPC/PPCInstr64Bit.td Wed Dec 6 15:46:13 2006
@@ -224,6 +224,14 @@
def SRAD : XForm_6<31, 794, (ops G8RC:$rA, G8RC:$rS, GPRC:$rB),
"srad $rA, $rS, $rB", IntRotateD,
[(set G8RC:$rA, (sra G8RC:$rS, GPRC:$rB))]>, isPPC64;
+
+def EXTSB8 : XForm_11<31, 954, (ops G8RC:$rA, G8RC:$rS),
+ "extsb $rA, $rS", IntGeneral,
+ [(set G8RC:$rA, (sext_inreg G8RC:$rS, i8))]>;
+def EXTSH8 : XForm_11<31, 922, (ops G8RC:$rA, G8RC:$rS),
+ "extsh $rA, $rS", IntGeneral,
+ [(set G8RC:$rA, (sext_inreg G8RC:$rS, i16))]>;
+
def EXTSW : XForm_11<31, 986, (ops G8RC:$rA, G8RC:$rS),
"extsw $rA, $rS", IntGeneral,
[(set G8RC:$rA, (sext_inreg G8RC:$rS, i32))]>, isPPC64;
More information about the llvm-commits
mailing list