[MC] Fix Intel Operand assembly parsing for .set ids
authorNirav Dave <niravd@google.com>
Tue, 2 Aug 2016 17:56:03 +0000 (17:56 +0000)
committerNirav Dave <niravd@google.com>
Tue, 2 Aug 2016 17:56:03 +0000 (17:56 +0000)
commit8601ac11aa301bd62f6de7a311fc8d7b9796ba95
treedba0ec927bc29e54f13ed07a51a38c6ae8d53225
parentca2f9d1cb2f806e127a62f3ddef1c61f1402f680
[MC] Fix Intel Operand assembly parsing for .set ids

Recommitting after fixing overaggressive fastpath return in parsing.

Fix intel syntax special case identifier operands that refer to a constant
(e.g. .set <ID> n) to be interpreted as immediate not memory in parsing.

Associated commit to fix clang test commited shortly.

Reviewers: rnk

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D22585

llvm-svn: 277489
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/intel-syntax-encoding.s
llvm/test/MC/X86/intel-syntax-error.s