Add BCTR and LWZU instruction opcodes

llvm-svn: 17851
This commit is contained in:
Misha Brukman 2004-11-15 21:20:09 +00:00
parent 38fcf309fc
commit a8c99d4daf
1 changed files with 7 additions and 2 deletions

View File

@ -14,8 +14,11 @@
include "PowerPCInstrFormats.td" include "PowerPCInstrFormats.td"
let isTerminator = 1, isReturn = 1 in let isTerminator = 1 in {
def BLR : XLForm_2_ext<19, 16, 20, 31, 1, 0, 0, (ops), "blr">; 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> { def u5imm : Operand<i8> {
let PrintMethod = "printU5ImmOperand"; let PrintMethod = "printU5ImmOperand";
@ -98,6 +101,8 @@ def LMW : DForm_1<46, 0, 0, (ops GPRC:$rD, s16imm:$disp, GPRC:$rA),
"lmw $rD, $disp($rA)">; "lmw $rD, $disp($rA)">;
def LWZ : DForm_1<32, 0, 0, (ops GPRC:$rD, symbolLo:$disp, GPRC:$rA), def LWZ : DForm_1<32, 0, 0, (ops GPRC:$rD, symbolLo:$disp, GPRC:$rA),
"lwz $rD, $disp($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), def ADDI : DForm_2<14, 0, 0, (ops GPRC:$rD, GPRC:$rA, s16imm:$imm),
"addi $rD, $rA, $imm">; "addi $rD, $rA, $imm">;