[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / sqdecp-diagnostics.s
blob27fcd2286bfb2e5519e82809a99132ab805ef8db
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
6 sqdecp sp, p0
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
8 // CHECK-NEXT: sqdecp sp, p0
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 sqdecp z0.b, p0
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
13 // CHECK-NEXT: sqdecp z0.b, p0
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 sqdecp w0, p0.b
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
18 // CHECK-NEXT: sqdecp w0, p0.b
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 sqdecp x0, p0.b, x1
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
23 // CHECK-NEXT: sqdecp x0, p0.b, x1
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
26 sqdecp x0, p0.b, w1
27 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
28 // CHECK-NEXT: sqdecp x0, p0.b, w1
29 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
32 // ------------------------------------------------------------------------- //
33 // Invalid predicate operand
35 sqdecp x0, p0
36 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
37 // CHECK-NEXT: sqdecp x0, p0
38 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
40 sqdecp x0, p0/z
41 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
42 // CHECK-NEXT: sqdecp x0, p0/z
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
45 sqdecp x0, p0/m
46 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
47 // CHECK-NEXT: sqdecp x0, p0/m
48 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
50 sqdecp x0, p0.q
51 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
52 // CHECK-NEXT: sqdecp x0, p0.q
53 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
55 sqdecp z0.d, p0.b
56 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
57 // CHECK-NEXT: sqdecp z0.d, p0.b
58 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
60 sqdecp z0.d, p0.q
61 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
62 // CHECK-NEXT: sqdecp z0.d, p0.q
63 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
66 // --------------------------------------------------------------------------//
67 // Negative tests for instructions that are incompatible with movprfx
69 movprfx z0.d, p0/z, z7.d
70 sqdecp z0.d, p0
71 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx
72 // CHECK-NEXT: sqdecp z0.d, p0
73 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: