[Arch64AsmParser] better diagnostic for isb
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 24 Apr 2017 08:22:20 +0000 (08:22 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 24 Apr 2017 08:22:20 +0000 (08:22 +0000)
commite5b8557d5bc58c96f590b7aa400f9e75e0a3b22f
treea7e484db002ac48d95bcbfd1ec3ce40981ddadda
parentb70e88bdec9791538624399131071e56e124641a
[Arch64AsmParser] better diagnostic for isb

Instruction isb takes as an operand either 'sy' or an immediate value. This
improves the diagnostic when the string is not 'sy' and adds a test case for
this which was missing. This also adds tests to check invalid inputs for dsb
and dmb.

Differential Revision: https://reviews.llvm.org/D32227

llvm-svn: 301165
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
llvm/test/MC/AArch64/basic-a64-diagnostics.s