[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / decd-diagnostics.s
blobdb7c0cf80b0d3de4e48860292bafe13e726b3d8e
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
6 decd w0
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
8 // CHECK-NEXT: decd w0
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 decd sp
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
13 // CHECK-NEXT: decd sp
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 // ------------------------------------------------------------------------- //
18 // Immediate not compatible with encode/decode function.
20 decd x0, all, mul #-1
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
22 // CHECK-NEXT: decd x0, all, mul #-1
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
25 decd x0, all, mul #0
26 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
27 // CHECK-NEXT: decd x0, all, mul #0
28 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
30 decd x0, all, mul #17
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
32 // CHECK-NEXT: decd x0, all, mul #17
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
36 // ------------------------------------------------------------------------- //
37 // Invalid predicate patterns
39 decd x0, vl512
40 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
41 // CHECK-NEXT: decd x0, vl512
42 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
44 decd x0, vl9
45 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
46 // CHECK-NEXT: decd x0, vl9
47 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
49 decd x0, #-1
50 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
51 // CHECK-NEXT: decd x0, #-1
52 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
54 decd x0, #32
55 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
56 // CHECK-NEXT: decd x0, #32
57 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: