[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / incp-diagnostics.s
blob2af89bdba9fb484c1a8f01771c58ee24f864633b
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
6 incp sp, p0
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
8 // CHECK-NEXT: incp sp, p0
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 incp z0.b, p0
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
13 // CHECK-NEXT: incp z0.b, p0
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 // ------------------------------------------------------------------------- //
18 // Invalid predicate operand
20 incp x0, p0
21 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
22 // CHECK-NEXT: incp x0, p0
23 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
25 incp x0, p0/z
26 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
27 // CHECK-NEXT: incp x0, p0/z
28 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
30 incp x0, p0/m
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
32 // CHECK-NEXT: incp x0, p0/m
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
35 incp x0, p0.q
36 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
37 // CHECK-NEXT: incp x0, p0.q
38 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
40 incp z0.d, p0.b
41 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
42 // CHECK-NEXT: incp z0.d, p0.b
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
45 incp z0.d, p0.q
46 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
47 // CHECK-NEXT: incp z0.d, p0.q
48 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
51 // --------------------------------------------------------------------------//
52 // Negative tests for instructions that are incompatible with movprfx
54 movprfx z31.d, p7/z, z6.d
55 incp z31.d, p7
56 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx
57 // CHECK-NEXT: incp z31.d, p7
58 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: