Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / SVE2p1 / ld1d_q-diagnostics.s
blob7860d9a610d0157a5af9ddf3df32401718273701
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid predicate register
6 ld1d {z0.q}, p8/z, [x0, x0, lsl #3]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
8 // CHECK-NEXT: ld1d {z0.q}, p8/z, [x0, x0, lsl #3]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 ld1d {z23.q}, p2/m, [x13, #-8, mul vl]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
13 // CHECK-NEXT: ld1d {z23.q}, p2/m, [x13, #-8, mul vl]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 ld1d {z23.q}, p2.q, [x13, #-8, mul vl]
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
18 // CHECK-NEXT: ld1d {z23.q}, p2.q, [x13, #-8, mul vl]
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 // --------------------------------------------------------------------------//
22 // Invalid immediate range
24 ld1d {z0.q}, p0/z, [x0, #-9, mul vl]
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-8, 7].
26 // CHECK-NEXT: ld1d {z0.q}, p0/z, [x0, #-9, mul vl]
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29 ld1d {z3.q}, p0/z, [x0, #8, mul vl]
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-8, 7].
31 // CHECK-NEXT: ld1d {z3.q}, p0/z, [x0, #8, mul vl]
32 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: