[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / bfmax-diagnostics.s
blobd0718e621153c3413952c4bac605be78d8a052ee
1 // RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+sve-b16b16 2>&1 < %s | FileCheck %s
3 // --------------------------------------------------------------------------//
4 // Invalid vector list
6 bfmax {z0.h-z1.h}, {z0.h-z2.h}, z0.h
7 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
8 // CHECK-NEXT: bfmax {z0.h-z1.h}, {z0.h-z2.h}, z0.h
9 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
11 bfmax {z1.h-z2.h}, {z0.h-z1.h}, z0.h
12 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 2 consecutive SVE vectors, where the first vector is a multiple of 2 and with matching element types
13 // CHECK-NEXT: bfmax {z1.h-z2.h}, {z0.h-z1.h}, z0.h
14 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
16 bfmax {z1.h-z4.h}, {z0.h-z3.h}, z0.h
17 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid vector list, expected list with 4 consecutive SVE vectors, where the first vector is a multiple of 4 and with matching element types
18 // CHECK-NEXT: bfmax {z1.h-z4.h}, {z0.h-z3.h}, z0.h
19 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
21 // --------------------------------------------------------------------------//
22 // Invalid single register
24 bfmax {z0.h-z1.h}, {z2.h-z3.h}, z31.h
25 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
26 // CHECK-NEXT: bfmax {z0.h-z1.h}, {z2.h-z3.h}, z31.h
27 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29 // --------------------------------------------------------------------------//
30 // Invalid Register Suffix
32 bfmax {z0.h-z1.h}, {z2.h-z3.h}, z14.d
33 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: Invalid restricted vector register, expected z0.h..z15.h
34 // CHECK-NEXT: bfmax {z0.h-z1.h}, {z2.h-z3.h}, z14.d
35 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
37 bfmax {z0.h-z1.h}, {z2.s-z3.s}, z14.h
38 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
39 // CHECK-NEXT: bfmax {z0.h-z1.h}, {z2.s-z3.s}, z14.h
40 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
42 bfmax {z0.h-z1.h}, {z2.h-z3.s}, z14.h
43 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: mismatched register size suffix
44 // CHECK-NEXT: bfmax {z0.h-z1.h}, {z2.h-z3.s}, z14.h
45 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: