[X86][AsmParser] Treat '%' as the modulo operator under Intel syntax
authorReid Kleckner <rnk@google.com>
Tue, 31 Oct 2017 16:47:38 +0000 (16:47 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 31 Oct 2017 16:47:38 +0000 (16:47 +0000)
commit39970069b1087395b89e9d3bb66434c81bd49dd8
tree6b97947b5c5e3900ccf4be6b347021feee2b1ae7
parent05c988473f508a1c37ab739898ed95b5456c47cf
[X86][AsmParser] Treat '%' as the modulo operator under Intel syntax

It can't be a register prefix, anyway. This is consistent with the masm
docs on MSDN: https://msdn.microsoft.com/en-us/library/t4ax90d2.aspx

This is a straight-forward extension of our support for "MOD"
implemented in https://reviews.llvm.org/D33876 / r306425

llvm-svn: 317011
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/MC/X86/intel-syntax-bitwise-ops.s