[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / bfmin.s
blob5cc3fd3241c0660614de3a13c072c29e8268017e
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+sve-b16b16 < %s \
2 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
3 // RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
4 // RUN: | FileCheck %s --check-prefix=CHECK-ERROR
5 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+sve-b16b16 < %s \
6 // RUN: | llvm-objdump -d --mattr=-sme2 --mattr=+sme2,+sve-b16b16 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+sve-b16b16 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+sve-b16b16 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme2,+sve-b16b16 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
14 bfmin {z0.h, z1.h}, {z0.h, z1.h}, z0.h // 11000001-00100000-10100001-00000001
15 // CHECK-INST: bfmin { z0.h, z1.h }, { z0.h, z1.h }, z0.h
16 // CHECK-ENCODING: [0x01,0xa1,0x20,0xc1]
17 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
18 // CHECK-UNKNOWN: c120a101 <unknown>
20 bfmin {z20.h, z21.h}, {z20.h, z21.h}, z5.h // 11000001-00100101-10100001-00010101
21 // CHECK-INST: bfmin { z20.h, z21.h }, { z20.h, z21.h }, z5.h
22 // CHECK-ENCODING: [0x15,0xa1,0x25,0xc1]
23 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
24 // CHECK-UNKNOWN: c125a115 <unknown>
26 bfmin {z22.h, z23.h}, {z22.h, z23.h}, z8.h // 11000001-00101000-10100001-00010111
27 // CHECK-INST: bfmin { z22.h, z23.h }, { z22.h, z23.h }, z8.h
28 // CHECK-ENCODING: [0x17,0xa1,0x28,0xc1]
29 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
30 // CHECK-UNKNOWN: c128a117 <unknown>
32 bfmin {z30.h, z31.h}, {z30.h, z31.h}, z15.h // 11000001-00101111-10100001-00011111
33 // CHECK-INST: bfmin { z30.h, z31.h }, { z30.h, z31.h }, z15.h
34 // CHECK-ENCODING: [0x1f,0xa1,0x2f,0xc1]
35 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
36 // CHECK-UNKNOWN: c12fa11f <unknown>
38 bfmin {z0.h, z1.h}, {z0.h, z1.h}, {z0.h, z1.h} // 11000001-00100000-10110001-00000001
39 // CHECK-INST: bfmin { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h }
40 // CHECK-ENCODING: [0x01,0xb1,0x20,0xc1]
41 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
42 // CHECK-UNKNOWN: c120b101 <unknown>
44 bfmin {z20.h, z21.h}, {z20.h, z21.h}, {z20.h, z21.h} // 11000001-00110100-10110001-00010101
45 // CHECK-INST: bfmin { z20.h, z21.h }, { z20.h, z21.h }, { z20.h, z21.h }
46 // CHECK-ENCODING: [0x15,0xb1,0x34,0xc1]
47 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
48 // CHECK-UNKNOWN: c134b115 <unknown>
50 bfmin {z22.h, z23.h}, {z22.h, z23.h}, {z8.h, z9.h} // 11000001-00101000-10110001-00010111
51 // CHECK-INST: bfmin { z22.h, z23.h }, { z22.h, z23.h }, { z8.h, z9.h }
52 // CHECK-ENCODING: [0x17,0xb1,0x28,0xc1]
53 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
54 // CHECK-UNKNOWN: c128b117 <unknown>
56 bfmin {z30.h, z31.h}, {z30.h, z31.h}, {z30.h, z31.h} // 11000001-00111110-10110001-00011111
57 // CHECK-INST: bfmin { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h }
58 // CHECK-ENCODING: [0x1f,0xb1,0x3e,0xc1]
59 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
60 // CHECK-UNKNOWN: c13eb11f <unknown>
62 bfmin {z0.h - z3.h}, {z0.h - z3.h}, z0.h // 11000001-00100000-10101001-00000001
63 // CHECK-INST: bfmin { z0.h - z3.h }, { z0.h - z3.h }, z0.h
64 // CHECK-ENCODING: [0x01,0xa9,0x20,0xc1]
65 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
66 // CHECK-UNKNOWN: c120a901 <unknown>
68 bfmin {z20.h - z23.h}, {z20.h - z23.h}, z5.h // 11000001-00100101-10101001-00010101
69 // CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, z5.h
70 // CHECK-ENCODING: [0x15,0xa9,0x25,0xc1]
71 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
72 // CHECK-UNKNOWN: c125a915 <unknown>
74 bfmin {z20.h - z23.h}, {z20.h - z23.h}, z8.h // 11000001-00101000-10101001-00010101
75 // CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, z8.h
76 // CHECK-ENCODING: [0x15,0xa9,0x28,0xc1]
77 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
78 // CHECK-UNKNOWN: c128a915 <unknown>
80 bfmin {z28.h - z31.h}, {z28.h - z31.h}, z15.h // 11000001-00101111-10101001-00011101
81 // CHECK-INST: bfmin { z28.h - z31.h }, { z28.h - z31.h }, z15.h
82 // CHECK-ENCODING: [0x1d,0xa9,0x2f,0xc1]
83 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
84 // CHECK-UNKNOWN: c12fa91d <unknown>
86 bfmin {z0.h - z3.h}, {z0.h - z3.h}, {z0.h - z3.h} // 11000001-00100000-10111001-00000001
87 // CHECK-INST: bfmin { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h }
88 // CHECK-ENCODING: [0x01,0xb9,0x20,0xc1]
89 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
90 // CHECK-UNKNOWN: c120b901 <unknown>
92 bfmin {z20.h - z23.h}, {z20.h - z23.h}, {z20.h - z23.h} // 11000001-00110100-10111001-00010101
93 // CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, { z20.h - z23.h }
94 // CHECK-ENCODING: [0x15,0xb9,0x34,0xc1]
95 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
96 // CHECK-UNKNOWN: c134b915 <unknown>
98 bfmin {z20.h - z23.h}, {z20.h - z23.h}, {z8.h - z11.h} // 11000001-00101000-10111001-00010101
99 // CHECK-INST: bfmin { z20.h - z23.h }, { z20.h - z23.h }, { z8.h - z11.h }
100 // CHECK-ENCODING: [0x15,0xb9,0x28,0xc1]
101 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
102 // CHECK-UNKNOWN: c128b915 <unknown>
104 bfmin {z28.h - z31.h}, {z28.h - z31.h}, {z28.h - z31.h} // 11000001-00111100-10111001-00011101
105 // CHECK-INST: bfmin { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h }
106 // CHECK-ENCODING: [0x1d,0xb9,0x3c,0xc1]
107 // CHECK-ERROR: instruction requires: sme2 sve-b16b16
108 // CHECK-UNKNOWN: c13cb91d <unknown>