Debian Codegraph @

llvm/test/MC/AArch64/SVE/ld1rb-diagnostics.s

raw
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
2
3 // --------------------------------------------------------------------------//
4 // Immediate out of lower bound [0, 63].
5
6 ld1rb z0.b, p1/z, [x0, #-1]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be in range [0, 63].
8 // CHECK-NEXT: ld1rb z0.b, p1/z, [x0, #-1]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
10
11 ld1rb z0.b, p1/z, [x0, #64]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be in range [0, 63].
13 // CHECK-NEXT: ld1rb z0.b, p1/z, [x0, #64]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
15
16
17 // --------------------------------------------------------------------------//
18 // restricted predicate has range [0, 7].
19
20 ld1rb z0.b, p8/z, [x0]
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
22 // CHECK-NEXT: ld1rb z0.b, p8/z, [x0]
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
24
25
26 // --------------------------------------------------------------------------//
27 // Negative tests for instructions that are incompatible with movprfx
28
29 movprfx z31.d, p7/z, z6.d
30 ld1rb { z31.d }, p7/z, [sp, #63]
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
32 // CHECK-NEXT: ld1rb { z31.d }, p7/z, [sp, #63]
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
34
35 movprfx z31, z6
36 ld1rb { z31.d }, p7/z, [sp, #63]
37 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
38 // CHECK-NEXT: ld1rb { z31.d }, p7/z, [sp, #63]
39 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: