OSDN Git Service

[AArch64] Provide "too few operands" diags on short-form NEON also.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 21:09:13 +0000 (21:09 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Thu, 13 Aug 2015 21:09:13 +0000 (21:09 +0000)
commit7409d94d2d65e50693a5d9eb81ca14fb6141d748
tree36c30fa1d705d5d08f05c991934492dd0d298e9e
parent1b93706717a5ec5d57084a2f1fabf8d1a28e8acb
[AArch64] Provide "too few operands" diags on short-form NEON also.

We used to just say "invalid type suffix for instruction", which is
misleading. This is because we fallback to the long-form matcher if the
short-form matcher failed, losing the error information on the way.

Save it, so that we can provide a little better diagnostics when the
long-form matcher thinks a suffix is the cause of the error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244955 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/arm64-diags.s