[PATCH] D48220: [AArch64][SVE] Asm: Fix predicate pattern diagnostics.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 15 08:03:52 PDT 2018


sdesmalen created this revision.
sdesmalen added reviewers: samparker, SjoerdMeijer.
Herald added a reviewer: javed.absar.
Herald added subscribers: rkruppe, kristof.beyls, tschuett.

This patch uses the DiagnosticPredicate for SVE predicate patterns
to improve their diagnostics, now giving a 'invalid operand' diagnostic
if the type is not an immediate or one of the expected pattern
labels.


https://reviews.llvm.org/D48220

Files:
  lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
  test/MC/AArch64/SVE/decb-diagnostics.s
  test/MC/AArch64/SVE/decd-diagnostics.s
  test/MC/AArch64/SVE/dech-diagnostics.s
  test/MC/AArch64/SVE/decw-diagnostics.s
  test/MC/AArch64/SVE/incb-diagnostics.s
  test/MC/AArch64/SVE/incd-diagnostics.s
  test/MC/AArch64/SVE/inch-diagnostics.s
  test/MC/AArch64/SVE/incw-diagnostics.s
  test/MC/AArch64/SVE/ptrue-diagnostics.s
  test/MC/AArch64/SVE/ptrues-diagnostics.s
  test/MC/AArch64/SVE/sqdecb-diagnostics.s
  test/MC/AArch64/SVE/sqdecd-diagnostics.s
  test/MC/AArch64/SVE/sqdech-diagnostics.s
  test/MC/AArch64/SVE/sqdecw-diagnostics.s
  test/MC/AArch64/SVE/sqincb-diagnostics.s
  test/MC/AArch64/SVE/sqincd-diagnostics.s
  test/MC/AArch64/SVE/sqinch-diagnostics.s
  test/MC/AArch64/SVE/sqincw-diagnostics.s
  test/MC/AArch64/SVE/uqdecb-diagnostics.s
  test/MC/AArch64/SVE/uqdecd-diagnostics.s
  test/MC/AArch64/SVE/uqdech-diagnostics.s
  test/MC/AArch64/SVE/uqdecw-diagnostics.s
  test/MC/AArch64/SVE/uqincb-diagnostics.s
  test/MC/AArch64/SVE/uqincd-diagnostics.s
  test/MC/AArch64/SVE/uqinch-diagnostics.s
  test/MC/AArch64/SVE/uqincw-diagnostics.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48220.151513.patch
Type: text/x-patch
Size: 26862 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180615/ffa20df6/attachment.bin>


More information about the llvm-commits mailing list