forked from OSchip/llvm-project
MCAsmParser/X86: Represent absolute memory operands as CodeGen does, with scale
== 1. llvm-svn: 95137
This commit is contained in:
parent
d28d6db735
commit
3184f22447
|
@ -174,7 +174,7 @@ struct X86Operand : public MCParsedAsmOperand {
|
|||
|
||||
bool isAbsMem() const {
|
||||
return Kind == Memory && !getMemSegReg() && !getMemBaseReg() &&
|
||||
!getMemIndexReg() && !getMemScale();
|
||||
!getMemIndexReg() && getMemScale() == 1;
|
||||
}
|
||||
|
||||
bool isNoSegMem() const {
|
||||
|
@ -248,7 +248,7 @@ struct X86Operand : public MCParsedAsmOperand {
|
|||
Res->Mem.Disp = Disp;
|
||||
Res->Mem.BaseReg = 0;
|
||||
Res->Mem.IndexReg = 0;
|
||||
Res->Mem.Scale = 0;
|
||||
Res->Mem.Scale = 1;
|
||||
return Res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue