mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
[X86] Remove the AbsMem32 type from the assembly parser. Only really need the 16-bit version which will automatically get prioritized over AbsMem.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230313 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
aecbb87ee8
commit
c3b9d471f6
@ -265,10 +265,6 @@ struct X86Operand : public MCParsedAsmOperand {
|
||||
return isAbsMem() && Mem.ModeSize == 16;
|
||||
}
|
||||
|
||||
bool isAbsMem32() const {
|
||||
return isAbsMem() && Mem.ModeSize != 16;
|
||||
}
|
||||
|
||||
bool isSrcIdx() const {
|
||||
return !getMemIndexReg() && getMemScale() == 1 &&
|
||||
(getMemBaseReg() == X86::RSI || getMemBaseReg() == X86::ESI ||
|
||||
|
@ -383,25 +383,19 @@ def brtarget8 : Operand<OtherVT>;
|
||||
|
||||
}
|
||||
|
||||
// Special parsers to detect mode to disambiguate.
|
||||
// Special parser to detect 16-bit mode to select 16-bit displacement.
|
||||
def X86AbsMem16AsmOperand : AsmOperandClass {
|
||||
let Name = "AbsMem16";
|
||||
let RenderMethod = "addAbsMemOperands";
|
||||
let SuperClasses = [X86AbsMemAsmOperand];
|
||||
}
|
||||
|
||||
def X86AbsMem32AsmOperand : AsmOperandClass {
|
||||
let Name = "AbsMem32";
|
||||
let RenderMethod = "addAbsMemOperands";
|
||||
let SuperClasses = [X86AbsMemAsmOperand];
|
||||
}
|
||||
|
||||
// Branch targets have OtherVT type and print as pc-relative values.
|
||||
let OperandType = "OPERAND_PCREL",
|
||||
PrintMethod = "printPCRelImm" in {
|
||||
let ParserMatchClass = X86AbsMem16AsmOperand in
|
||||
def brtarget16 : Operand<OtherVT>;
|
||||
let ParserMatchClass = X86AbsMem32AsmOperand in
|
||||
let ParserMatchClass = X86AbsMemAsmOperand in
|
||||
def brtarget32 : Operand<OtherVT>;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user