[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / SVE / sqdecb-diagnostics.s
blob259e2b4a72312d48aebe82287382780f3f644642
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
6 sqdecb w0
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
8 // CHECK-NEXT: sqdecb w0
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sqdecb wsp
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
13 // CHECK-NEXT: sqdecb wsp
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 sqdecb sp
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
18 // CHECK-NEXT: sqdecb sp
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 sqdecb z0.b
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
23 // CHECK-NEXT: sqdecb z0.b
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
27 // ------------------------------------------------------------------------- //
28 // Operands not matching up
30 sqdecb x0, w1
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
32 // CHECK-NEXT: sqdecb x0, w1
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
35 sqdecb x0, x1
36 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
37 // CHECK-NEXT: sqdecb x0, x1
38 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
41 // ------------------------------------------------------------------------- //
42 // Immediate not compatible with encode/decode function.
44 sqdecb x0, all, mul #-1
45 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
46 // CHECK-NEXT: sqdecb x0, all, mul #-1
47 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
49 sqdecb x0, all, mul #0
50 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
51 // CHECK-NEXT: sqdecb x0, all, mul #0
52 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
54 sqdecb x0, all, mul #17
55 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
56 // CHECK-NEXT: sqdecb x0, all, mul #17
57 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
60 // ------------------------------------------------------------------------- //
61 // Invalid predicate patterns
63 sqdecb x0, vl512
64 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
65 // CHECK-NEXT: sqdecb x0, vl512
66 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
68 sqdecb x0, vl9
69 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
70 // CHECK-NEXT: sqdecb x0, vl9
71 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
73 sqdecb x0, #-1
74 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
75 // CHECK-NEXT: sqdecb x0, #-1
76 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
78 sqdecb x0, #32
79 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
80 // CHECK-NEXT: sqdecb x0, #32
81 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: