Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / umlsl-diagnostics.s
blob1c36f94a1945e5671c5e35a632c9724214a50083
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector list
6 umlsl za.s[w8, 0:1, vgx2], {z0.h-z2.h}, z0.h[0]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
8 // CHECK-NEXT: umlsl za.s[w8, 0:1, vgx2], {z0.h-z2.h}, z0.h[0]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 umlsl za.s[w9, 6:7], {z13.h-z16.h}, {z9.h-z12.h}
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
13 // CHECK-NEXT: umlsl za.s[w9, 6:7], {z13.h-z16.h}, {z9.h-z12.h}
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid indexed-vector register
19 umlsl za.s[w11, 14:15], z31.h, z15.b[7]
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
21 // CHECK-NEXT: umlsl za.s[w11, 14:15], z31.h, z15.b[7]
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 umlsl za.s[w11, 6:7, vgx2], {z12.h-z13.h}, z31.h[7]
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
26 // CHECK-NEXT: umlsl za.s[w11, 6:7, vgx2], {z12.h-z13.h}, z31.h[7]
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Invalid vector select register
32 umlsl za.s[w7, 6:7], {z12.h-z13.h}, {z8.h-z9.h}
33 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w8, w11]
34 // CHECK-NEXT: umlsl za.s[w7, 6:7], {z12.h-z13.h}, {z8.h-z9.h}
35 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
37 umlsl za.s[w12, 6:7], {z12.h-z13.h}, z8.h[0]
38 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w8, w11]
39 // CHECK-NEXT: umlsl za.s[w12, 6:7], {z12.h-z13.h}, z8.h[0]
40 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
42 // --------------------------------------------------------------------------//
43 // Invalid vector select offset
45 umlsl za.s[w11, 4:8], {z30.h-z31.h}, z15.h[15]
46 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
47 // CHECK-NEXT: umlsl za.s[w11, 4:8], {z30.h-z31.h}, z15.h[15]
48 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
50 umlsl za.s[w8, 10:12], z17.h, z0.h
51 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
52 // CHECK-NEXT: umlsl za.s[w8, 10:12], z17.h, z0.h
53 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
55 // --------------------------------------------------------------------------//
56 // Invalid Register Suffix
58 umlsl za.b[w8, 6:7, vgx2], {z12.h-z13.h}, {z8.h-z9.h}
59 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected suffix .s
60 // CHECK-NEXT: umlsl za.b[w8, 6:7, vgx2], {z12.h-z13.h}, {z8.h-z9.h}
61 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
63 // --------------------------------------------------------------------------//
64 // Invalid vector lane index
66 umlsl za.s[w11, 6:7, vgx4], {z12.h-z15.h}, z8.h[64]
67 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 7].
68 // CHECK-NEXT: umlsl za.s[w11, 6:7, vgx4], {z12.h-z15.h}, z8.h[64]
69 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: