[Frontend] Remove unused includes (NFC) (#116927)
[llvm-project.git] / llvm / test / MC / AArch64 / SME2 / bfsub.s
blobe19d316e955c77c40d8118d75a6858869737f8f0
1 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-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=+sme-b16b16 < %s \
6 // RUN: | llvm-objdump -d --mattr=+sme-b16b16 - | FileCheck %s --check-prefix=CHECK-INST
7 // RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-b16b16 < %s \
8 // RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN
9 // RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-b16b16 < %s \
10 // RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
11 // RUN: | llvm-mc -triple=aarch64 -mattr=+sme-b16b16 -disassemble -show-encoding \
12 // RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
14 bfsub za.h[w8, 0, vgx2], {z0.h, z1.h} // 11000001-11100100-00011100-00001000
15 // CHECK-INST: bfsub za.h[w8, 0, vgx2], { z0.h, z1.h }
16 // CHECK-ENCODING: [0x08,0x1c,0xe4,0xc1]
17 // CHECK-ERROR: instruction requires: sme-b16b16
18 // CHECK-UNKNOWN: c1e41c08 <unknown>
20 bfsub za.h[w8, 0], {z0.h - z1.h} // 11000001-11100100-00011100-00001000
21 // CHECK-INST: bfsub za.h[w8, 0, vgx2], { z0.h, z1.h }
22 // CHECK-ENCODING: [0x08,0x1c,0xe4,0xc1]
23 // CHECK-ERROR: instruction requires: sme-b16b16
24 // CHECK-UNKNOWN: c1e41c08 <unknown>
26 bfsub za.h[w10, 5, vgx2], {z10.h, z11.h} // 11000001-11100100-01011101-01001101
27 // CHECK-INST: bfsub za.h[w10, 5, vgx2], { z10.h, z11.h }
28 // CHECK-ENCODING: [0x4d,0x5d,0xe4,0xc1]
29 // CHECK-ERROR: instruction requires: sme-b16b16
30 // CHECK-UNKNOWN: c1e45d4d <unknown>
32 bfsub za.h[w10, 5], {z10.h - z11.h} // 11000001-11100100-01011101-01001101
33 // CHECK-INST: bfsub za.h[w10, 5, vgx2], { z10.h, z11.h }
34 // CHECK-ENCODING: [0x4d,0x5d,0xe4,0xc1]
35 // CHECK-ERROR: instruction requires: sme-b16b16
36 // CHECK-UNKNOWN: c1e45d4d <unknown>
38 bfsub za.h[w11, 7, vgx2], {z12.h, z13.h} // 11000001-11100100-01111101-10001111
39 // CHECK-INST: bfsub za.h[w11, 7, vgx2], { z12.h, z13.h }
40 // CHECK-ENCODING: [0x8f,0x7d,0xe4,0xc1]
41 // CHECK-ERROR: instruction requires: sme-b16b16
42 // CHECK-UNKNOWN: c1e47d8f <unknown>
44 bfsub za.h[w11, 7], {z12.h - z13.h} // 11000001-11100100-01111101-10001111
45 // CHECK-INST: bfsub za.h[w11, 7, vgx2], { z12.h, z13.h }
46 // CHECK-ENCODING: [0x8f,0x7d,0xe4,0xc1]
47 // CHECK-ERROR: instruction requires: sme-b16b16
48 // CHECK-UNKNOWN: c1e47d8f <unknown>
50 bfsub za.h[w11, 7, vgx2], {z30.h, z31.h} // 11000001-11100100-01111111-11001111
51 // CHECK-INST: bfsub za.h[w11, 7, vgx2], { z30.h, z31.h }
52 // CHECK-ENCODING: [0xcf,0x7f,0xe4,0xc1]
53 // CHECK-ERROR: instruction requires: sme-b16b16
54 // CHECK-UNKNOWN: c1e47fcf <unknown>
56 bfsub za.h[w11, 7], {z30.h - z31.h} // 11000001-11100100-01111111-11001111
57 // CHECK-INST: bfsub za.h[w11, 7, vgx2], { z30.h, z31.h }
58 // CHECK-ENCODING: [0xcf,0x7f,0xe4,0xc1]
59 // CHECK-ERROR: instruction requires: sme-b16b16
60 // CHECK-UNKNOWN: c1e47fcf <unknown>
62 bfsub za.h[w8, 5, vgx2], {z16.h, z17.h} // 11000001-11100100-00011110-00001101
63 // CHECK-INST: bfsub za.h[w8, 5, vgx2], { z16.h, z17.h }
64 // CHECK-ENCODING: [0x0d,0x1e,0xe4,0xc1]
65 // CHECK-ERROR: instruction requires: sme-b16b16
66 // CHECK-UNKNOWN: c1e41e0d <unknown>
68 bfsub za.h[w8, 5], {z16.h - z17.h} // 11000001-11100100-00011110-00001101
69 // CHECK-INST: bfsub za.h[w8, 5, vgx2], { z16.h, z17.h }
70 // CHECK-ENCODING: [0x0d,0x1e,0xe4,0xc1]
71 // CHECK-ERROR: instruction requires: sme-b16b16
72 // CHECK-UNKNOWN: c1e41e0d <unknown>
74 bfsub za.h[w8, 1, vgx2], {z0.h, z1.h} // 11000001-11100100-00011100-00001001
75 // CHECK-INST: bfsub za.h[w8, 1, vgx2], { z0.h, z1.h }
76 // CHECK-ENCODING: [0x09,0x1c,0xe4,0xc1]
77 // CHECK-ERROR: instruction requires: sme-b16b16
78 // CHECK-UNKNOWN: c1e41c09 <unknown>
80 bfsub za.h[w8, 1], {z0.h - z1.h} // 11000001-11100100-00011100-00001001
81 // CHECK-INST: bfsub za.h[w8, 1, vgx2], { z0.h, z1.h }
82 // CHECK-ENCODING: [0x09,0x1c,0xe4,0xc1]
83 // CHECK-ERROR: instruction requires: sme-b16b16
84 // CHECK-UNKNOWN: c1e41c09 <unknown>
86 bfsub za.h[w10, 0, vgx2], {z18.h, z19.h} // 11000001-11100100-01011110, 01001000
87 // CHECK-INST: bfsub za.h[w10, 0, vgx2], { z18.h, z19.h }
88 // CHECK-ENCODING: [0x48,0x5e,0xe4,0xc1]
89 // CHECK-ERROR: instruction requires: sme-b16b16
90 // CHECK-UNKNOWN: c1e45e48 <unknown>
92 bfsub za.h[w10, 0], {z18.h - z19.h} // 11000001-11100100-01011110-01001000
93 // CHECK-INST: bfsub za.h[w10, 0, vgx2], { z18.h, z19.h }
94 // CHECK-ENCODING: [0x48,0x5e,0xe4,0xc1]
95 // CHECK-ERROR: instruction requires: sme-b16b16
96 // CHECK-UNKNOWN: c1e45e48 <unknown>
98 bfsub za.h[w8, 0, vgx2], {z12.h, z13.h} // 11000001-11100100-00011101-10001000
99 // CHECK-INST: bfsub za.h[w8, 0, vgx2], { z12.h, z13.h }
100 // CHECK-ENCODING: [0x88,0x1d,0xe4,0xc1]
101 // CHECK-ERROR: instruction requires: sme-b16b16
102 // CHECK-UNKNOWN: c1e41d88 <unknown>
104 bfsub za.h[w8, 0], {z12.h - z13.h} // 11000001-11100100-00011101-10001000
105 // CHECK-INST: bfsub za.h[w8, 0, vgx2], { z12.h, z13.h }
106 // CHECK-ENCODING: [0x88,0x1d,0xe4,0xc1]
107 // CHECK-ERROR: instruction requires: sme-b16b16
108 // CHECK-UNKNOWN: c1e41d88 <unknown>
110 bfsub za.h[w10, 1, vgx2], {z0.h, z1.h} // 11000001-11100100-01011100-00001001
111 // CHECK-INST: bfsub za.h[w10, 1, vgx2], { z0.h, z1.h }
112 // CHECK-ENCODING: [0x09,0x5c,0xe4,0xc1]
113 // CHECK-ERROR: instruction requires: sme-b16b16
114 // CHECK-UNKNOWN: c1e45c09 <unknown>
116 bfsub za.h[w10, 1], {z0.h - z1.h} // 11000001-11100100-01011100-00001001
117 // CHECK-INST: bfsub za.h[w10, 1, vgx2], { z0.h, z1.h }
118 // CHECK-ENCODING: [0x09,0x5c,0xe4,0xc1]
119 // CHECK-ERROR: instruction requires: sme-b16b16
120 // CHECK-UNKNOWN: c1e45c09 <unknown>
122 bfsub za.h[w8, 5, vgx2], {z22.h, z23.h} // 11000001-11100100-00011110, 11001101
123 // CHECK-INST: bfsub za.h[w8, 5, vgx2], { z22.h, z23.h }
124 // CHECK-ENCODING: [0xcd,0x1e,0xe4,0xc1]
125 // CHECK-ERROR: instruction requires: sme-b16b16
126 // CHECK-UNKNOWN: c1e41ecd <unknown>
128 bfsub za.h[w8, 5], {z22.h - z23.h} // 11000001-11100100-00011110-11001101
129 // CHECK-INST: bfsub za.h[w8, 5, vgx2], { z22.h, z23.h }
130 // CHECK-ENCODING: [0xcd,0x1e,0xe4,0xc1]
131 // CHECK-ERROR: instruction requires: sme-b16b16
132 // CHECK-UNKNOWN: c1e41ecd <unknown>
134 bfsub za.h[w11, 2, vgx2], {z8.h, z9.h} // 11000001-11100100-01111101-00001010
135 // CHECK-INST: bfsub za.h[w11, 2, vgx2], { z8.h, z9.h }
136 // CHECK-ENCODING: [0x0a,0x7d,0xe4,0xc1]
137 // CHECK-ERROR: instruction requires: sme-b16b16
138 // CHECK-UNKNOWN: c1e47d0a <unknown>
140 bfsub za.h[w11, 2], {z8.h - z9.h} // 11000001-11100100-01111101-00001010
141 // CHECK-INST: bfsub za.h[w11, 2, vgx2], { z8.h, z9.h }
142 // CHECK-ENCODING: [0x0a,0x7d,0xe4,0xc1]
143 // CHECK-ERROR: instruction requires: sme-b16b16
144 // CHECK-UNKNOWN: c1e47d0a <unknown>
146 bfsub za.h[w9, 7, vgx2], {z12.h, z13.h} // 11000001-11100100-00111101-10001111
147 // CHECK-INST: bfsub za.h[w9, 7, vgx2], { z12.h, z13.h }
148 // CHECK-ENCODING: [0x8f,0x3d,0xe4,0xc1]
149 // CHECK-ERROR: instruction requires: sme-b16b16
150 // CHECK-UNKNOWN: c1e43d8f <unknown>
152 bfsub za.h[w9, 7], {z12.h - z13.h} // 11000001-11100100-00111101-10001111
153 // CHECK-INST: bfsub za.h[w9, 7, vgx2], { z12.h, z13.h }
154 // CHECK-ENCODING: [0x8f,0x3d,0xe4,0xc1]
155 // CHECK-ERROR: instruction requires: sme-b16b16
156 // CHECK-UNKNOWN: c1e43d8f <unknown>
158 bfsub za.h[w8, 0, vgx4], {z0.h - z3.h} // 11000001-11100101-00011100-00001000
159 // CHECK-INST: bfsub za.h[w8, 0, vgx4], { z0.h - z3.h }
160 // CHECK-ENCODING: [0x08,0x1c,0xe5,0xc1]
161 // CHECK-ERROR: instruction requires: sme-b16b16
162 // CHECK-UNKNOWN: c1e51c08 <unknown>
164 bfsub za.h[w8, 0], {z0.h - z3.h} // 11000001-11100101-00011100-00001000
165 // CHECK-INST: bfsub za.h[w8, 0, vgx4], { z0.h - z3.h }
166 // CHECK-ENCODING: [0x08,0x1c,0xe5,0xc1]
167 // CHECK-ERROR: instruction requires: sme-b16b16
168 // CHECK-UNKNOWN: c1e51c08 <unknown>
170 bfsub za.h[w10, 5, vgx4], {z8.h - z11.h} // 11000001-11100101-01011101-00001101
171 // CHECK-INST: bfsub za.h[w10, 5, vgx4], { z8.h - z11.h }
172 // CHECK-ENCODING: [0x0d,0x5d,0xe5,0xc1]
173 // CHECK-ERROR: instruction requires: sme-b16b16
174 // CHECK-UNKNOWN: c1e55d0d <unknown>
176 bfsub za.h[w10, 5], {z8.h - z11.h} // 11000001-11100101-01011101-00001101
177 // CHECK-INST: bfsub za.h[w10, 5, vgx4], { z8.h - z11.h }
178 // CHECK-ENCODING: [0x0d,0x5d,0xe5,0xc1]
179 // CHECK-ERROR: instruction requires: sme-b16b16
180 // CHECK-UNKNOWN: c1e55d0d <unknown>
182 bfsub za.h[w11, 7, vgx4], {z12.h - z15.h} // 11000001-11100101-01111101-10001111
183 // CHECK-INST: bfsub za.h[w11, 7, vgx4], { z12.h - z15.h }
184 // CHECK-ENCODING: [0x8f,0x7d,0xe5,0xc1]
185 // CHECK-ERROR: instruction requires: sme-b16b16
186 // CHECK-UNKNOWN: c1e57d8f <unknown>
188 bfsub za.h[w11, 7], {z12.h - z15.h} // 11000001-11100101-01111101-10001111
189 // CHECK-INST: bfsub za.h[w11, 7, vgx4], { z12.h - z15.h }
190 // CHECK-ENCODING: [0x8f,0x7d,0xe5,0xc1]
191 // CHECK-ERROR: instruction requires: sme-b16b16
192 // CHECK-UNKNOWN: c1e57d8f <unknown>
194 bfsub za.h[w11, 7, vgx4], {z28.h - z31.h} // 11000001-11100101-01111111-10001111
195 // CHECK-INST: bfsub za.h[w11, 7, vgx4], { z28.h - z31.h }
196 // CHECK-ENCODING: [0x8f,0x7f,0xe5,0xc1]
197 // CHECK-ERROR: instruction requires: sme-b16b16
198 // CHECK-UNKNOWN: c1e57f8f <unknown>
200 bfsub za.h[w11, 7], {z28.h - z31.h} // 11000001-11100101-01111111-10001111
201 // CHECK-INST: bfsub za.h[w11, 7, vgx4], { z28.h - z31.h }
202 // CHECK-ENCODING: [0x8f,0x7f,0xe5,0xc1]
203 // CHECK-ERROR: instruction requires: sme-b16b16
204 // CHECK-UNKNOWN: c1e57f8f <unknown>
206 bfsub za.h[w8, 5, vgx4], {z16.h - z19.h} // 11000001-11100101-00011110-00001101
207 // CHECK-INST: bfsub za.h[w8, 5, vgx4], { z16.h - z19.h }
208 // CHECK-ENCODING: [0x0d,0x1e,0xe5,0xc1]
209 // CHECK-ERROR: instruction requires: sme-b16b16
210 // CHECK-UNKNOWN: c1e51e0d <unknown>
212 bfsub za.h[w8, 5], {z16.h - z19.h} // 11000001-11100101-00011110-00001101
213 // CHECK-INST: bfsub za.h[w8, 5, vgx4], { z16.h - z19.h }
214 // CHECK-ENCODING: [0x0d,0x1e,0xe5,0xc1]
215 // CHECK-ERROR: instruction requires: sme-b16b16
216 // CHECK-UNKNOWN: c1e51e0d <unknown>
218 bfsub za.h[w8, 1, vgx4], {z0.h - z3.h} // 11000001-11100101-00011100-00001001
219 // CHECK-INST: bfsub za.h[w8, 1, vgx4], { z0.h - z3.h }
220 // CHECK-ENCODING: [0x09,0x1c,0xe5,0xc1]
221 // CHECK-ERROR: instruction requires: sme-b16b16
222 // CHECK-UNKNOWN: c1e51c09 <unknown>
224 bfsub za.h[w8, 1], {z0.h - z3.h} // 11000001-11100101-00011100-00001001
225 // CHECK-INST: bfsub za.h[w8, 1, vgx4], { z0.h - z3.h }
226 // CHECK-ENCODING: [0x09,0x1c,0xe5,0xc1]
227 // CHECK-ERROR: instruction requires: sme-b16b16
228 // CHECK-UNKNOWN: c1e51c09 <unknown>
230 bfsub za.h[w10, 0, vgx4], {z16.h - z19.h} // 11000001-11100101-01011110-00001000
231 // CHECK-INST: bfsub za.h[w10, 0, vgx4], { z16.h - z19.h }
232 // CHECK-ENCODING: [0x08,0x5e,0xe5,0xc1]
233 // CHECK-ERROR: instruction requires: sme-b16b16
234 // CHECK-UNKNOWN: c1e55e08 <unknown>
236 bfsub za.h[w10, 0], {z16.h - z19.h} // 11000001-11100101-01011110-00001000
237 // CHECK-INST: bfsub za.h[w10, 0, vgx4], { z16.h - z19.h }
238 // CHECK-ENCODING: [0x08,0x5e,0xe5,0xc1]
239 // CHECK-ERROR: instruction requires: sme-b16b16
240 // CHECK-UNKNOWN: c1e55e08 <unknown>
242 bfsub za.h[w8, 0, vgx4], {z12.h - z15.h} // 11000001-11100101-00011101-10001000
243 // CHECK-INST: bfsub za.h[w8, 0, vgx4], { z12.h - z15.h }
244 // CHECK-ENCODING: [0x88,0x1d,0xe5,0xc1]
245 // CHECK-ERROR: instruction requires: sme-b16b16
246 // CHECK-UNKNOWN: c1e51d88 <unknown>
248 bfsub za.h[w8, 0], {z12.h - z15.h} // 11000001-11100101-00011101-10001000
249 // CHECK-INST: bfsub za.h[w8, 0, vgx4], { z12.h - z15.h }
250 // CHECK-ENCODING: [0x88,0x1d,0xe5,0xc1]
251 // CHECK-ERROR: instruction requires: sme-b16b16
252 // CHECK-UNKNOWN: c1e51d88 <unknown>
254 bfsub za.h[w10, 1, vgx4], {z0.h - z3.h} // 11000001-11100101-01011100-00001001
255 // CHECK-INST: bfsub za.h[w10, 1, vgx4], { z0.h - z3.h }
256 // CHECK-ENCODING: [0x09,0x5c,0xe5,0xc1]
257 // CHECK-ERROR: instruction requires: sme-b16b16
258 // CHECK-UNKNOWN: c1e55c09 <unknown>
260 bfsub za.h[w10, 1], {z0.h - z3.h} // 11000001-11100101-01011100-00001001
261 // CHECK-INST: bfsub za.h[w10, 1, vgx4], { z0.h - z3.h }
262 // CHECK-ENCODING: [0x09,0x5c,0xe5,0xc1]
263 // CHECK-ERROR: instruction requires: sme-b16b16
264 // CHECK-UNKNOWN: c1e55c09 <unknown>
266 bfsub za.h[w8, 5, vgx4], {z20.h - z23.h} // 11000001-11100101-00011110-10001101
267 // CHECK-INST: bfsub za.h[w8, 5, vgx4], { z20.h - z23.h }
268 // CHECK-ENCODING: [0x8d,0x1e,0xe5,0xc1]
269 // CHECK-ERROR: instruction requires: sme-b16b16
270 // CHECK-UNKNOWN: c1e51e8d <unknown>
272 bfsub za.h[w8, 5], {z20.h - z23.h} // 11000001-11100101-00011110-10001101
273 // CHECK-INST: bfsub za.h[w8, 5, vgx4], { z20.h - z23.h }
274 // CHECK-ENCODING: [0x8d,0x1e,0xe5,0xc1]
275 // CHECK-ERROR: instruction requires: sme-b16b16
276 // CHECK-UNKNOWN: c1e51e8d <unknown>
278 bfsub za.h[w11, 2, vgx4], {z8.h - z11.h} // 11000001-11100101-01111101-00001010
279 // CHECK-INST: bfsub za.h[w11, 2, vgx4], { z8.h - z11.h }
280 // CHECK-ENCODING: [0x0a,0x7d,0xe5,0xc1]
281 // CHECK-ERROR: instruction requires: sme-b16b16
282 // CHECK-UNKNOWN: c1e57d0a <unknown>
284 bfsub za.h[w11, 2], {z8.h - z11.h} // 11000001-11100101-01111101-00001010
285 // CHECK-INST: bfsub za.h[w11, 2, vgx4], { z8.h - z11.h }
286 // CHECK-ENCODING: [0x0a,0x7d,0xe5,0xc1]
287 // CHECK-ERROR: instruction requires: sme-b16b16
288 // CHECK-UNKNOWN: c1e57d0a <unknown>
290 bfsub za.h[w9, 7, vgx4], {z12.h - z15.h} // 11000001-11100101-00111101-10001111
291 // CHECK-INST: bfsub za.h[w9, 7, vgx4], { z12.h - z15.h }
292 // CHECK-ENCODING: [0x8f,0x3d,0xe5,0xc1]
293 // CHECK-ERROR: instruction requires: sme-b16b16
294 // CHECK-UNKNOWN: c1e53d8f <unknown>
296 bfsub za.h[w9, 7], {z12.h - z15.h} // 11000001-11100101-00111101-10001111
297 // CHECK-INST: bfsub za.h[w9, 7, vgx4], { z12.h - z15.h }
298 // CHECK-ENCODING: [0x8f,0x3d,0xe5,0xc1]
299 // CHECK-ERROR: instruction requires: sme-b16b16
300 // CHECK-UNKNOWN: c1e53d8f <unknown>