[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / AArch64 / SVE2 / whilehi-diagnostics.s
blobd5c278409f859affe160506428ba420c11ac982a
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
4 // ------------------------------------------------------------------------- //
5 // Invalid scalar registers
7 whilehi p15.b, xzr, sp
8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
9 // CHECK-NEXT: whilehi p15.b, xzr, sp
10 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
12 whilehi p15.b, xzr, w0
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
14 // CHECK-NEXT: whilehi p15.b, xzr, w0
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 whilehi p15.b, w0, x0
18 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
19 // CHECK-NEXT: whilehi p15.b, w0, x0
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
23 // ------------------------------------------------------------------------- //
24 // Invalid predicate
26 whilehi p15, w0, w0
27 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register.
28 // CHECK-NEXT: whilehi p15, w0, w0
29 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: