[llvm-objdump] - Remove one overload of reportError. NFCI.
[llvm-complete.git] / test / MC / AArch64 / SVE2 / sadalp-diagnostics.s
blobc7615ef87da46daeb710d27aeba596e0d8f33208
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
4 // --------------------------------------------------------------------------//
5 // Element sizes must match
7 sadalp z0.b, p0/m, z1.b
8 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
9 // CHECK-NEXT: sadalp z0.b, p0/m, z1.b
10 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
12 sadalp z0.h, p0/m, z1.h
13 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
14 // CHECK-NEXT: sadalp z0.h, p0/m, z1.h
15 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
17 sadalp z0.s, p0/m, z1.s
18 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
19 // CHECK-NEXT: sadalp z0.s, p0/m, z1.s
20 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
22 sadalp z0.d, p0/m, z1.d
23 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
24 // CHECK-NEXT: sadalp z0.d, p0/m, z1.d
25 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
27 // --------------------------------------------------------------------------//
28 // Predicate not in restricted predicate range
30 sadalp z0.h, p8/m, z1.b
31 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
32 // CHECK-NEXT: sadalp z0.h, p8/m, z1.b
33 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
35 // --------------------------------------------------------------------------//
36 // Negative movprfx tests
38 movprfx z31.s, p0/z, z6.s // element type of the source operand, rather than destination.
39 sadalp z31.d, p0/m, z30.s
40 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx with a different element size
41 // CHECK-NEXT: sadalp z31.d, p0/m, z30.s
42 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: