OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1945e17
)
MCAsmParser/X86: Represent absolute memory operands as CodeGen does, with scale
author
Daniel Dunbar
<daniel@zuster.org>
Tue, 2 Feb 2010 21:44:16 +0000
(21:44 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Tue, 2 Feb 2010 21:44:16 +0000
(21:44 +0000)
== 1.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95137
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/AsmParser/X86AsmParser.cpp
b/lib/Target/X86/AsmParser/X86AsmParser.cpp
index
65e4981
..
73e3770
100644
(file)
--- a/
lib/Target/X86/AsmParser/X86AsmParser.cpp
+++ b/
lib/Target/X86/AsmParser/X86AsmParser.cpp
@@
-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;
}