[Asm] Improve "too few operands" errors
authorOliver Stannard <oliver.stannard@arm.com>
Tue, 21 Nov 2017 15:16:50 +0000 (15:16 +0000)
committerOliver Stannard <oliver.stannard@arm.com>
Tue, 21 Nov 2017 15:16:50 +0000 (15:16 +0000)
commit1e73e95f3c82fcfdd9cd817d0b5989b697e4b05d
tree15054eb396a9bc704d84a233c4a066e3c2879abc
parent6e94331259069aab6c2d15b4f31fca5bd0b0a1cc
[Asm] Improve "too few operands" errors

- We can still emit this error if the actual instruction has two or more
  operands missing compared to the expected one.
- We should only emit this error once per instruction.

Differential revision: https://reviews.llvm.org/D36746

llvm-svn: 318770
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
llvm/test/MC/ARM/diagnostics.s
llvm/test/MC/ARM/ldrd-strd-gnu-bad-inst.s
llvm/test/MC/ARM/thumb-diagnostics.s
llvm/test/MC/ARM/thumb2-diagnostics.s
llvm/utils/TableGen/AsmMatcherEmitter.cpp