[llvm-commits] CVS: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
Misha Brukman
brukman at cs.uiuc.edu
Mon Nov 15 13:20:19 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PowerPCInstrInfo.td updated: 1.41 -> 1.42
---
Log message:
Add BCTR and LWZU instruction opcodes
---
Diffs of the changes: (+7 -2)
Index: llvm/lib/Target/PowerPC/PowerPCInstrInfo.td
diff -u llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.41 llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.42
--- llvm/lib/Target/PowerPC/PowerPCInstrInfo.td:1.41 Sat Oct 23 15:29:24 2004
+++ llvm/lib/Target/PowerPC/PowerPCInstrInfo.td Mon Nov 15 15:20:09 2004
@@ -14,8 +14,11 @@
include "PowerPCInstrFormats.td"
-let isTerminator = 1, isReturn = 1 in
- def BLR : XLForm_2_ext<19, 16, 20, 31, 1, 0, 0, (ops), "blr">;
+let isTerminator = 1 in {
+ let isReturn = 1 in
+ def BLR : XLForm_2_ext<19, 16, 20, 31, 1, 0, 0, (ops), "blr">;
+ def BCTR : XLForm_2_ext<19, 528, 20, 31, 1, 0, 0, (ops), "bctr">;
+}
def u5imm : Operand<i8> {
let PrintMethod = "printU5ImmOperand";
@@ -98,6 +101,8 @@
"lmw $rD, $disp($rA)">;
def LWZ : DForm_1<32, 0, 0, (ops GPRC:$rD, symbolLo:$disp, GPRC:$rA),
"lwz $rD, $disp($rA)">;
+def LWZU : DForm_1<33, 0, 0, (ops GPRC:$rD, symbolLo:$disp, GPRC:$rA),
+ "lwzu $rD, $disp($rA)">;
}
def ADDI : DForm_2<14, 0, 0, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
"addi $rD, $rA, $imm">;
More information about the llvm-commits
mailing list