[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / ldr-diagnostics.s
blobb025465f6e63851844def0a4efdab8c7279b59a6
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Immediate out of upper bound [-256, 255].
6 ldr p0, [x0, #-257, MUL VL]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
8 // CHECK-NEXT: ldr p0, [x0, #-257, MUL VL]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 ldr p0, [x0, #256, MUL VL]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
13 // CHECK-NEXT: ldr p0, [x0, #256, MUL VL]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 ldr z0, [x0, #-257, MUL VL]
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
18 // CHECK-NEXT: ldr z0, [x0, #-257, MUL VL]
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 ldr z0, [x0, #256, MUL VL]
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
23 // CHECK-NEXT: ldr z0, [x0, #256, MUL VL]
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Unexpected element width suffix
29 ldr z0.b, [x0]
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected register without element width suffix
31 // CHECK-NEXT: ldr z0.b, [x0]
32 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: