[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / faddv-diagnostics.s
blobc140f0ec3119e57b6c7e48fe88e508707e204195
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 faddv b0, p7, z31.b
4 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
5 // CHECK-NEXT: faddv b0, p7, z31.b
6 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
9 // ------------------------------------------------------------------------- //
10 // Invalid predicate operand
12 faddv h0, p8, z31.h
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
14 // CHECK-NEXT: faddv h0, p8, z31.h
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 faddv h0, p7.b, z31.h
18 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
19 // CHECK-NEXT: faddv h0, p7.b, z31.h
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 faddv h0, p7.q, z31.h
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
24 // CHECK-NEXT: faddv h0, p7.q, z31.h
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
28 // ------------------------------------------------------------------------- //
29 // Result must be a valid FP register.
31 faddv v0, p7, z31.h
32 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
33 // CHECK-NEXT: faddv v0, p7, z31.h
34 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
36 // --------------------------------------------------------------------------//
37 // Negative tests for instructions that are incompatible with movprfx
39 movprfx z31.d, p7/z, z6.d
40 faddv d0, p7, z31.d
41 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
42 // CHECK-NEXT: faddv d0, p7, z31.d
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
45 movprfx z31, z6
46 faddv d0, p7, z31.d
47 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
48 // CHECK-NEXT: faddv d0, p7, z31.d
49 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: