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