[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / ld1rb-diagnostics.s
blobba4e289b8d7b3e4be85f78f8991ac5ae400acbbf
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Immediate out of lower bound [0, 63].
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]+}}:
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]+}}:
17 // --------------------------------------------------------------------------//
18 // restricted predicate has range [0, 7].
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]+}}:
26 // --------------------------------------------------------------------------//
27 // Negative tests for instructions that are incompatible with movprfx
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]+}}:
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]+}}: