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