MC/X86: Chris pointed that 'as' isn't consistent in accepting the long form of
authorDaniel Dunbar <daniel@zuster.org>
Tue, 4 May 2010 17:31:02 +0000 (17:31 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 4 May 2010 17:31:02 +0000 (17:31 +0000)
commite9f0fb4179d57c631a72fa8020ca05a4d132e15b
tree7c49206eb79aa79305f3157abf467ded45c52a43
parent28428cd6f31c1ea3cf4cea03e64189a4c32b84a3
MC/X86: Chris pointed that 'as' isn't consistent in accepting the long form of
instructions which have no direct register usage.

Darwin 'as' accepts:
  add $0, (%rax)
but rejects
  mov $0, (%rax)
for example.

Given that, only accept suffix matches which match exactly one form. We still
need to emit nice diagnostics for failures...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103015 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/AsmParser/X86AsmParser.cpp
test/MC/AsmParser/X86/x86_64-suffix-matching.s