Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / sqrshrun-diagnostics.s
blobac4408e5a85774f16c632e7c637fd465ef97cbf9
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector list
6 sqrshrun z0.b, {z0.s-z4.s}, #32
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid number of vectors
8 // CHECK-NEXT: sqrshrun z0.b, {z0.s-z4.s}, #32
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sqrshrun 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: sqrshrun z0.h, {z1.d-z4.d}, #1
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid immediate
19 sqrshrun 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: sqrshrun z31.h, {z28.d-z31.d}, #65
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 // --------------------------------------------------------------------------//
25 // Invalid Register Suffix
27 sqrshrun z23.s, {z12.s-z15.s}, #24
28 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
29 // CHECK-NEXT: sqrshrun z23.s, {z12.s-z15.s}, #24
30 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: