1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Thumb needs a few different encoding schemes for branch targets. Rename

t_brtarget to be more specific.

llvm-svn: 121398
This commit is contained in:
Jim Grosbach 2010-12-09 19:01:46 +00:00
parent 3c35e2ab2f
commit 57d420438a
2 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ def t_imm_s4 : Operand<i32> {
// Define Thumb specific addressing modes.
def t_brtarget : Operand<i32> {
def t_cbtarget : Operand<i32> {
let EncoderMethod = "getThumbBRTargetOpValue";
}
@ -518,7 +518,7 @@ let isBranch = 1, isTerminator = 1 in
// Compare and branch on zero / non-zero
let isBranch = 1, isTerminator = 1 in {
def tCBZ : T1I<(outs), (ins tGPR:$Rn, t_brtarget:$target), IIC_Br,
def tCBZ : T1I<(outs), (ins tGPR:$Rn, t_cbtarget:$target), IIC_Br,
"cbz\t$Rn, $target", []>,
T1Misc<{0,0,?,1,?,?,?}> {
// A8.6.27
@ -529,7 +529,7 @@ let isBranch = 1, isTerminator = 1 in {
let Inst{2-0} = Rn;
}
def tCBNZ : T1I<(outs), (ins tGPR:$cmp, t_brtarget:$target), IIC_Br,
def tCBNZ : T1I<(outs), (ins tGPR:$cmp, t_cbtarget:$target), IIC_Br,
"cbnz\t$cmp, $target", []>,
T1Misc<{1,0,?,1,?,?,?}> {
// A8.6.27

View File

@ -587,7 +587,7 @@ static int ARMFlagFromOpName(LiteralConstantEmitter *type,
IMM("neon_vcvt_imm32");
MISC("brtarget", "kOperandTypeARMBranchTarget"); // ?
MISC("t_brtarget", "kOperandTypeARMBranchTarget"); // ?
MISC("t_cbtarget", "kOperandTypeARMBranchTarget"); // ?
MISC("bltarget", "kOperandTypeARMBranchTarget"); // ?
MISC("t_bltarget", "kOperandTypeARMBranchTarget"); // ?
MISC("t_blxtarget", "kOperandTypeARMBranchTarget"); // ?