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