[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / sqrshru-diagnostics.s
blobcd50ad8f5effc2ac163da44a04e99bec7cf55cc4
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector list
6 sqrshru z0.b, {z0.s-z4.s}, #32
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors
8 // CHECK-NEXT: sqrshru z0.b, {z0.s-z4.s}, #32
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sqrshru z0.h, {z1.d-z4.d}, #1
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 4 consecutive SVE vectors, where the first vector is a multiple of 4 and with matching element types
13 // CHECK-NEXT: sqrshru z0.h, {z1.d-z4.d}, #1
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid immediate
19 sqrshru z31.h, {z28.d-z31.d}, #65
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64].
21 // CHECK-NEXT: sqrshru z31.h, {z28.d-z31.d}, #65
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 sqrshru z31.h, {z28.d-z31.d}, #0
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64].
26 // CHECK-NEXT: sqrshru z31.h, {z28.d-z31.d}, #0
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Invalid Register Suffix
32 sqrshru z23.s, {z12.s-z15.s}, #24
33 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
34 // CHECK-NEXT: sqrshru z23.s, {z12.s-z15.s}, #24
35 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: