mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Add operand encoding for Thumb2 subw SP + imm. rdar://8745434
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
07e9b26371
commit
37474e6d68
@ -1195,12 +1195,16 @@ def t2SUBrSPi : T2sTwoRegImm<(outs GPR:$Rd), (ins GPR:$sp, t2_so_imm:$imm),
|
||||
}
|
||||
def t2SUBrSPi12 : T2TwoRegImm<(outs GPR:$Rd), (ins GPR:$sp, imm0_4095:$imm),
|
||||
IIC_iALUi, "subw", "\t$Rd, $sp, $imm", []> {
|
||||
bits<4> Rd;
|
||||
bits<12> imm;
|
||||
let Inst{31-27} = 0b11110;
|
||||
let Inst{25} = 1;
|
||||
let Inst{24-21} = 0b0101;
|
||||
let Inst{20} = 0; // The S bit.
|
||||
let Inst{26} = imm{11};
|
||||
let Inst{25-20} = 0b101010;
|
||||
let Inst{19-16} = 0b1101; // Rn = sp
|
||||
let Inst{15} = 0;
|
||||
let Inst{14-12} = imm{10-8};
|
||||
let Inst{11-8} = Rd;
|
||||
let Inst{7-0} = imm{7-0};
|
||||
}
|
||||
|
||||
// SUB r, sp, so_reg
|
||||
|
Loading…
x
Reference in New Issue
Block a user