Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / movt-diagnostics.s
blobd3696bf114623ba9caca0d54f288e6f76b18fba8
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 2>&1 < %s| FileCheck %s
3 // index must be a multiple of 8 in range [0, 56].
4 // --------------------------------------------------------------------------//
6 movt x0, zt0[57]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be a multiple of 8 in range [0, 56].
8 // CHECK-NEXT: movt x0, zt0[57]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 movt x0, zt0[58]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be a multiple of 8 in range [0, 56].
13 // CHECK-NEXT: movt x0, zt0[58]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 movt x0, zt0[64]
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be a multiple of 8 in range [0, 56].
18 // CHECK-NEXT: movt x0, zt0[64]
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 movt x0, zt0[72]
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be a multiple of 8 in range [0, 56].
23 // CHECK-NEXT: movt x0, zt0[72]
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Invalid zt0 register
29 movt x0, zt1[0]
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unexpected token in argument list
31 // CHECK-NEXT: movt x0, zt1[0]
32 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: