mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-03 13:31:05 +00:00
Add OperandTypes for Thumb branch targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135199 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3be41b748e
commit
151bd17a8f
@ -71,10 +71,12 @@ def t_adrlabel : Operand<i32> {
|
||||
// Scaled 4 immediate.
|
||||
def t_imm_s4 : Operand<i32> {
|
||||
let PrintMethod = "printThumbS4ImmOperand";
|
||||
let OperandType = "OPERAND_IMMEDIATE";
|
||||
}
|
||||
|
||||
// Define Thumb specific addressing modes.
|
||||
|
||||
let OperandType = "OPERAND_PCREL" in {
|
||||
def t_brtarget : Operand<OtherVT> {
|
||||
let EncoderMethod = "getThumbBRTargetOpValue";
|
||||
}
|
||||
@ -94,6 +96,7 @@ def t_bltarget : Operand<i32> {
|
||||
def t_blxtarget : Operand<i32> {
|
||||
let EncoderMethod = "getThumbBLXTargetOpValue";
|
||||
}
|
||||
}
|
||||
|
||||
def MemModeRegThumbAsmOperand : AsmOperandClass {
|
||||
let Name = "MemModeRegThumb";
|
||||
|
Loading…
Reference in New Issue
Block a user