[PATCH] D36747: [Asm, ARM] Add fallback diag for multiple invalid operands
Oliver Stannard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 15 08:25:32 PDT 2017
olista01 created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.
This adds a "invalid operands for instruction" diagnostic for
instructions where there is an instruction encoding with the correct
mnemonic and which is available for this target, but where multiple
operands do not match those which were provided. This makes it clear
that there is some combination of operands that is valid for the current
target, which the default diagnostic of "invalid instruction" does not.
Since this is a very general error, we only emit it if we don't have a
more specific error.
Repository:
rL LLVM
https://reviews.llvm.org/D36747
Files:
include/llvm/MC/MCParser/MCTargetAsmParser.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
test/MC/ARM/diagnostics.s
test/MC/ARM/invalid-fp-armv8.s
test/MC/ARM/invalid-neon-v8.s
test/MC/ARM/ldrd-strd-gnu-arm-bad-regs.s
test/MC/ARM/ldrd-strd-gnu-bad-inst.s
test/MC/ARM/ldrd-strd-gnu-sp.s
test/MC/ARM/ldrd-strd-gnu-thumb-bad-regs.s
test/MC/ARM/thumb-mov.s
test/MC/ARM/thumb2-diagnostics.s
test/MC/ARM/vfp4.s
utils/TableGen/AsmMatcherEmitter.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36747.111174.patch
Type: text/x-patch
Size: 20149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170815/2e8cd7a8/attachment.bin>
More information about the llvm-commits
mailing list