in the case where an instruction only has one implementation
authorChris Lattner <sabre@nondot.org>
Mon, 6 Sep 2010 22:11:18 +0000 (22:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 6 Sep 2010 22:11:18 +0000 (22:11 +0000)
commitce4a3355d96971e7edcbff3c1975f83e1ddcb8f2
treed960b4febe27f29c805fd3df6f13b2a0cc0534f8
parenta008e8ac73cb3cf2eaf006fbb1b62905c8626758
in the case where an instruction only has one implementation
of a mneumonic, report operand errors with better location
info.  For example, we now report:

t.s:6:14: error: invalid operand for instruction
        cwtl $1
             ^

but we fail for common cases like:

t.s:11:4: error: invalid operand for instruction
   addl $1, $1
   ^

because we don't know if this is supposed to be the reg/imm or imm/reg
form.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113178 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/X86/AsmParser/X86AsmParser.cpp
utils/TableGen/AsmMatcherEmitter.cpp