[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / str-diagnostics.s
blobf49eb01642ffc63f626c4dfe70e52b93415c89e3
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 str p0, [x0, #-257, MUL VL]
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
8 // CHECK-NEXT: str p0, [x0, #-257, MUL VL]
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 str p0, [x0, #256, MUL VL]
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
13 // CHECK-NEXT: str p0, [x0, #256, MUL VL]
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 str z0, [x0, #-257, MUL VL]
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
18 // CHECK-NEXT: str z0, [x0, #-257, MUL VL]
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 str z0, [x0, #256, MUL VL]
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-256, 255].
23 // CHECK-NEXT: str z0, [x0, #256, MUL VL]
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 // --------------------------------------------------------------------------//
27 // Unexpected element width suffix
29 str z0.b, [x0]
30 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: expected register without element width suffix
31 // CHECK-NEXT: str z0.b, [x0]
32 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: