mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-01 04:29:57 +00:00
MCAsmParser/X86: Represent absolute memory operands as CodeGen does, with scale
== 1. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1945e179e1
commit
7b9147afa7
@ -174,7 +174,7 @@ struct X86Operand : public MCParsedAsmOperand {
|
|||||||
|
|
||||||
bool isAbsMem() const {
|
bool isAbsMem() const {
|
||||||
return Kind == Memory && !getMemSegReg() && !getMemBaseReg() &&
|
return Kind == Memory && !getMemSegReg() && !getMemBaseReg() &&
|
||||||
!getMemIndexReg() && !getMemScale();
|
!getMemIndexReg() && getMemScale() == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isNoSegMem() const {
|
bool isNoSegMem() const {
|
||||||
@ -248,7 +248,7 @@ struct X86Operand : public MCParsedAsmOperand {
|
|||||||
Res->Mem.Disp = Disp;
|
Res->Mem.Disp = Disp;
|
||||||
Res->Mem.BaseReg = 0;
|
Res->Mem.BaseReg = 0;
|
||||||
Res->Mem.IndexReg = 0;
|
Res->Mem.IndexReg = 0;
|
||||||
Res->Mem.Scale = 0;
|
Res->Mem.Scale = 1;
|
||||||
return Res;
|
return Res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user