[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / SVE / uqincp-diagnostics.s
blob7c5491424038904d41c51fdafebc0d16981658c9
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 // ------------------------------------------------------------------------- //
4 // Invalid result register
6 uqincp sp, p0
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
8 // CHECK-NEXT: uqincp sp, p0
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 uqincp z0.b, p0
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
13 // CHECK-NEXT: uqincp z0.b, p0
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 uqincp x0, p0.b, w0
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
18 // CHECK-NEXT: uqincp x0, p0.b, w0
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 uqincp x0, p0.b, x1
22 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
23 // CHECK-NEXT: uqincp x0, p0.b, x1
24 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
27 // ------------------------------------------------------------------------- //
28 // Invalid predicate operand
30 uqincp x0, p0
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
32 // CHECK-NEXT: uqincp x0, p0
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
35 uqincp x0, p0/z
36 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
37 // CHECK-NEXT: uqincp x0, p0/z
38 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
40 uqincp x0, p0/m
41 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
42 // CHECK-NEXT: uqincp x0, p0/m
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
45 uqincp x0, p0.q
46 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
47 // CHECK-NEXT: uqincp x0, p0.q
48 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
50 uqincp z0.d, p0.b
51 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
52 // CHECK-NEXT: uqincp z0.d, p0.b
53 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
55 uqincp z0.d, p0.q
56 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register
57 // CHECK-NEXT: uqincp z0.d, p0.q
58 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
61 // --------------------------------------------------------------------------//
62 // Negative tests for instructions that are incompatible with movprfx
64 movprfx z0.d, p0/z, z7.d
65 uqincp z0.d, p0
66 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx
67 // CHECK-NEXT: uqincp z0.d, p0
68 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: