Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / udot-diagnostics.s
blob01ae9ec363c6b0d4fe13dba0ffa8517bfa46efa8
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid select register
6 udot za.s[w7, 0, vgx4], {z0.h-z3.h}, z0.h[0]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w8, w11]
8 // CHECK-NEXT: udot za.s[w7, 0, vgx4], {z0.h-z3.h}, z0.h[0]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 udot za.s[w12, 0, vgx2], {z0.h-z1.h}, z0.h[0]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w8, w11]
13 // CHECK-NEXT: udot za.s[w12, 0, vgx2], {z0.h-z1.h}, z0.h[0]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 // --------------------------------------------------------------------------//
17 // Invalid select offset
19 udot za.s[w8, 8], {z0.h-z1.h}, z0.h[0]
20 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7].
21 // CHECK-NEXT: udot za.s[w8, 8], {z0.h-z1.h}, z0.h[0]
22 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24 udot za.s[w8, -1], {z0.h-z1.h}, z0.h[0]
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7].
26 // CHECK-NEXT: udot za.s[w8, -1], {z0.h-z1.h}, z0.h[0]
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Out of range element index
32 udot za.s[w8, 0], {z0.h-z1.h}, z0.h[4]
33 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
34 // CHECK-NEXT: udot za.s[w8, 0], {z0.h-z1.h}, z0.h[4]
35 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
37 udot za.s[w8, 0], {z0.h-z3.h}, z0.h[4]
38 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: vector lane must be an integer in range [0, 3].
39 // CHECK-NEXT: udot za.s[w8, 0], {z0.h-z3.h}, z0.h[4]
40 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
42 // --------------------------------------------------------------------------//
43 // ZPR range constraint
45 udot za.s[w8, 5], {z0.h-z1.h}, z16.h[0]
46 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
47 // CHECK-NEXT: udot za.s[w8, 5], {z0.h-z1.h}, z16.h[0]
48 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
50 udot za.s[w8, 5], {z0.h-z3.h}, z16.h[0]
51 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
52 // CHECK-NEXT: udot za.s[w8, 5], {z0.h-z3.h}, z16.h[0]
53 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: