[PATCH] D45880: [AArch64][SVE] Enable DiagnosticPredicates for SVE LD1 instructions.
Sander de Smalen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 20 06:33:42 PDT 2018
sdesmalen created this revision.
sdesmalen added reviewers: olista01, stoklund, craig.topper, mcrosier, rengolin, echristo, fhahn, SjoerdMeijer, evandro.
Herald added a reviewer: javed.absar.
Herald added subscribers: kristof.beyls, tschuett.
This patch extends the PredicateMethod of AsmOperands used in SVE's
LD1 instructions with a DiagnosticPredicate. This makes them 'context
sensitive' to the operand that has been parsed and tells the user to
use the right register (with expected shift/extend), rather than telling
the immediate is out of range when it actually parsed a register.
Patch [2/2] in a series to improve assembler diagnostics for SVE.
https://reviews.llvm.org/D45880
Files:
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
test/MC/AArch64/SVE/ld1b-diagnostics.s
test/MC/AArch64/SVE/ld1d-diagnostics.s
test/MC/AArch64/SVE/ld1h-diagnostics.s
test/MC/AArch64/SVE/ld1sb-diagnostics.s
test/MC/AArch64/SVE/ld1sh-diagnostics.s
test/MC/AArch64/SVE/ld1sw-diagnostics.s
test/MC/AArch64/SVE/ld1w-diagnostics.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45880.143306.patch
Type: text/x-patch
Size: 12947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/f4d62096/attachment.bin>
More information about the llvm-commits
mailing list