[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2 / sqneg-diagnostics.s
blob372adad0427c092020acdc35f4417c023f8d99c7
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid predicate
6 sqneg z0.s, p0/z, z1.s
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction requires: sme2p2 or sve2p2
8 // CHECK-NEXT: sqneg z0.s, p0/z, z1.s
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sqneg z0.s, p8/m, z1.s
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
13 // CHECK-NEXT: sqneg z0.s, p8/m, z1.s
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 // ------------------------------------------------------------------------- //
18 // Invalid element width
20 sqneg z0.b, p7/m, z1.s
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
22 // CHECK-NEXT: sqneg z0.b, p7/m, z1.s
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: