commit | 6220fea2a877e5cff559ed38e98c59a076ea9825 | [log] [tgz] |
---|---|---|
author | Devang Patel <dpatel@apple.com> | Tue Jan 17 21:25:10 2012 +0000 |
committer | Devang Patel <dpatel@apple.com> | Tue Jan 17 21:25:10 2012 +0000 |
tree | a44be87973a693a1703a86fad4df93fcd87c99e7 | |
parent | fced2945995b4fd8f28f7dec9fcb5a6ab2e2798d [diff] [blame] |
Intel syntax: Parse "BYTE PTR [RDX + RCX]" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148334 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/X86/AsmParser/X86AsmParser.cpp b/lib/Target/X86/AsmParser/X86AsmParser.cpp index b31993c..75e2866 100644 --- a/lib/Target/X86/AsmParser/X86AsmParser.cpp +++ b/lib/Target/X86/AsmParser/X86AsmParser.cpp
@@ -637,6 +637,10 @@ Disp = isPlus ? ValExpr : MCUnaryExpr::CreateMinus(ValExpr, getContext()); } else return ErrorOperand(PlusLoc, "unexpected token after +"); + } else if (getLexer().is(AsmToken::Identifier)) { + IndexReg = getIntelRegisterOperand(Tok.getString()); + if (IndexReg) + Parser.Lex(); } }