[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / MC / AArch64 / SVE / fmaxnmv-diagnostics.s
blob33f3aa64beefa1091a85b20dcab3187f9a0477c1
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s
3 fmaxnmv b0, p7, z31.b
4 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
5 // CHECK-NEXT: fmaxnmv b0, p7, z31.b
6 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
9 // ------------------------------------------------------------------------- //
10 // Invalid predicate operand
12 fmaxnmv h0, p8, z31.h
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
14 // CHECK-NEXT: fmaxnmv h0, p8, z31.h
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 fmaxnmv 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: fmaxnmv h0, p7.b, z31.h
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 fmaxnmv 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: fmaxnmv h0, p7.q, z31.h
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
28 // ------------------------------------------------------------------------- //
29 // Result must be a valid FP register.
31 fmaxnmv v0, p7, z31.h
32 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
33 // CHECK-NEXT: fmaxnmv 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 fmaxnmv 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: fmaxnmv d0, p7, z31.d
43 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
45 movprfx z31, z6
46 fmaxnmv 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: fmaxnmv d0, p7, z31.d
49 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: