[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / inst-directive-diagnostic.s
blobbdd8694062cd80c59b51b840aa776e9d05893902
1 // RUN: not llvm-mc %s -triple=aarch64-none-linux-gnu -filetype asm -o - 2>&1 \
2 // RUN: | FileCheck -check-prefix CHECK-ERROR %s
4 .align 2
5 .global diagnostics
6 .type diagnostics,%function
7 diagnostics:
8 .Label:
9 .inst
10 // CHECK: [[@LINE-1]]:5: error: expected expression following '.inst' directive
12 .inst 0x5e104020,
13 // CHECK: [[@LINE-1]]:22: error: unknown token in expression in '.inst' directive
15 .inst .Label
16 // CHECK: [[@LINE-1]]:11: error: expected constant expression in '.inst' directive
18 .inst 0x5e104020 0x5e104020
19 // CHECK: [[@LINE-1]]:22: error: unexpected token in '.inst' directive
21 // CHECK-ERROR-NOT: unexpected token at start of statement