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 bfadd za.h
[w8
, 0, vgx2
], {z0.h
, z1.h
} // 11000001-11100100-00011100-00000000
15 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx2
], { z0.h
, z1.h
}
16 // CHECK-ENCODING
: [0x00,0x1c,0xe4,0xc1]
17 // CHECK-ERROR
: instruction requires
: sme-b16b16
18 // CHECK-UNKNOWN
: c1e41c00
<unknown
>
20 bfadd za.h
[w8
, 0], {z0.h
- z1.h
} // 11000001-11100100-00011100-00000000
21 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx2
], { z0.h
, z1.h
}
22 // CHECK-ENCODING
: [0x00,0x1c,0xe4,0xc1]
23 // CHECK-ERROR
: instruction requires
: sme-b16b16
24 // CHECK-UNKNOWN
: c1e41c00
<unknown
>
26 bfadd za.h
[w10
, 5, vgx2
], {z10.h
, z11.h
} // 11000001-11100100-01011101-01000101
27 // CHECK-INST
: bfadd za.h
[w10
, 5, vgx2
], { z10.h
, z11.h
}
28 // CHECK-ENCODING
: [0x45,0x5d,0xe4,0xc1]
29 // CHECK-ERROR
: instruction requires
: sme-b16b16
30 // CHECK-UNKNOWN
: c1e45d45
<unknown
>
32 bfadd za.h
[w10
, 5], {z10.h
- z11.h
} // 11000001-11100100-01011101-01000101
33 // CHECK-INST
: bfadd za.h
[w10
, 5, vgx2
], { z10.h
, z11.h
}
34 // CHECK-ENCODING
: [0x45,0x5d,0xe4,0xc1]
35 // CHECK-ERROR
: instruction requires
: sme-b16b16
36 // CHECK-UNKNOWN
: c1e45d45
<unknown
>
38 bfadd za.h
[w11
, 7, vgx2
], {z12.h
, z13.h
} // 11000001-11100100-01111101-10000111
39 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx2
], { z12.h
, z13.h
}
40 // CHECK-ENCODING
: [0x87,0x7d,0xe4,0xc1]
41 // CHECK-ERROR
: instruction requires
: sme-b16b16
42 // CHECK-UNKNOWN
: c1e47d87
<unknown
>
44 bfadd za.h
[w11
, 7], {z12.h
- z13.h
} // 11000001-11100100-01111101-10000111
45 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx2
], { z12.h
, z13.h
}
46 // CHECK-ENCODING
: [0x87,0x7d,0xe4,0xc1]
47 // CHECK-ERROR
: instruction requires
: sme-b16b16
48 // CHECK-UNKNOWN
: c1e47d87
<unknown
>
50 bfadd za.h
[w11
, 7, vgx2
], {z30.h
, z31.h
} // 11000001-11100100-01111111-11000111
51 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx2
], { z30.h
, z31.h
}
52 // CHECK-ENCODING
: [0xc7,0x7f,0xe4,0xc1]
53 // CHECK-ERROR
: instruction requires
: sme-b16b16
54 // CHECK-UNKNOWN
: c1e47fc7
<unknown
>
56 bfadd za.h
[w11
, 7], {z30.h
- z31.h
} // 11000001-11100100-01111111-11000111
57 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx2
], { z30.h
, z31.h
}
58 // CHECK-ENCODING
: [0xc7,0x7f,0xe4,0xc1]
59 // CHECK-ERROR
: instruction requires
: sme-b16b16
60 // CHECK-UNKNOWN
: c1e47fc7
<unknown
>
62 bfadd za.h
[w8
, 5, vgx2
], {z16.h
, z17.h
} // 11000001-11100100-00011110-00000101
63 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx2
], { z16.h
, z17.h
}
64 // CHECK-ENCODING
: [0x05,0x1e,0xe4,0xc1]
65 // CHECK-ERROR
: instruction requires
: sme-b16b16
66 // CHECK-UNKNOWN
: c1e41e05
<unknown
>
68 bfadd za.h
[w8
, 5], {z16.h
- z17.h
} // 11000001-11100100-00011110-00000101
69 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx2
], { z16.h
, z17.h
}
70 // CHECK-ENCODING
: [0x05,0x1e,0xe4,0xc1]
71 // CHECK-ERROR
: instruction requires
: sme-b16b16
72 // CHECK-UNKNOWN
: c1e41e05
<unknown
>
74 bfadd za.h
[w8
, 1, vgx2
], {z0.h
, z1.h
} // 11000001-11100100-00011100-00000001
75 // CHECK-INST
: bfadd za.h
[w8
, 1, vgx2
], { z0.h
, z1.h
}
76 // CHECK-ENCODING
: [0x01,0x1c,0xe4,0xc1]
77 // CHECK-ERROR
: instruction requires
: sme-b16b16
78 // CHECK-UNKNOWN
: c1e41c01
<unknown
>
80 bfadd za.h
[w8
, 1], {z0.h
- z1.h
} // 11000001-11100100-00011100-00000001
81 // CHECK-INST
: bfadd za.h
[w8
, 1, vgx2
], { z0.h
, z1.h
}
82 // CHECK-ENCODING
: [0x01,0x1c,0xe4,0xc1]
83 // CHECK-ERROR
: instruction requires
: sme-b16b16
84 // CHECK-UNKNOWN
: c1e41c01
<unknown
>
86 bfadd za.h
[w10
, 0, vgx2
], {z18.h
, z19.h
} // 11000001-11100100-01011110, 01000000
87 // CHECK-INST
: bfadd za.h
[w10
, 0, vgx2
], { z18.h
, z19.h
}
88 // CHECK-ENCODING
: [0x40,0x5e,0xe4,0xc1]
89 // CHECK-ERROR
: instruction requires
: sme-b16b16
90 // CHECK-UNKNOWN
: c1e45e40
<unknown
>
92 bfadd za.h
[w10
, 0], {z18.h
- z19.h
} // 11000001-11100100-01011110-01000000
93 // CHECK-INST
: bfadd za.h
[w10
, 0, vgx2
], { z18.h
, z19.h
}
94 // CHECK-ENCODING
: [0x40,0x5e,0xe4,0xc1]
95 // CHECK-ERROR
: instruction requires
: sme-b16b16
96 // CHECK-UNKNOWN
: c1e45e40
<unknown
>
98 bfadd za.h
[w8
, 0, vgx2
], {z12.h
, z13.h
} // 11000001-11100100-00011101-10000000
99 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx2
], { z12.h
, z13.h
}
100 // CHECK-ENCODING
: [0x80,0x1d,0xe4,0xc1]
101 // CHECK-ERROR
: instruction requires
: sme-b16b16
102 // CHECK-UNKNOWN
: c1e41d80
<unknown
>
104 bfadd za.h
[w8
, 0], {z12.h
- z13.h
} // 11000001-11100100-00011101-10000000
105 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx2
], { z12.h
, z13.h
}
106 // CHECK-ENCODING
: [0x80,0x1d,0xe4,0xc1]
107 // CHECK-ERROR
: instruction requires
: sme-b16b16
108 // CHECK-UNKNOWN
: c1e41d80
<unknown
>
110 bfadd za.h
[w10
, 1, vgx2
], {z0.h
, z1.h
} // 11000001-11100100-01011100-00000001
111 // CHECK-INST
: bfadd za.h
[w10
, 1, vgx2
], { z0.h
, z1.h
}
112 // CHECK-ENCODING
: [0x01,0x5c,0xe4,0xc1]
113 // CHECK-ERROR
: instruction requires
: sme-b16b16
114 // CHECK-UNKNOWN
: c1e45c01
<unknown
>
116 bfadd za.h
[w10
, 1], {z0.h
- z1.h
} // 11000001-11100100-01011100-00000001
117 // CHECK-INST
: bfadd za.h
[w10
, 1, vgx2
], { z0.h
, z1.h
}
118 // CHECK-ENCODING
: [0x01,0x5c,0xe4,0xc1]
119 // CHECK-ERROR
: instruction requires
: sme-b16b16
120 // CHECK-UNKNOWN
: c1e45c01
<unknown
>
122 bfadd za.h
[w8
, 5, vgx2
], {z22.h
, z23.h
} // 11000001-11100100-00011110, 11000101
123 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx2
], { z22.h
, z23.h
}
124 // CHECK-ENCODING
: [0xc5,0x1e,0xe4,0xc1]
125 // CHECK-ERROR
: instruction requires
: sme-b16b16
126 // CHECK-UNKNOWN
: c1e41ec5
<unknown
>
128 bfadd za.h
[w8
, 5], {z22.h
- z23.h
} // 11000001-11100100-00011110-11000101
129 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx2
], { z22.h
, z23.h
}
130 // CHECK-ENCODING
: [0xc5,0x1e,0xe4,0xc1]
131 // CHECK-ERROR
: instruction requires
: sme-b16b16
132 // CHECK-UNKNOWN
: c1e41ec5
<unknown
>
134 bfadd za.h
[w11
, 2, vgx2
], {z8.h
, z9.h
} // 11000001-11100100-01111101-00000010
135 // CHECK-INST
: bfadd za.h
[w11
, 2, vgx2
], { z8.h
, z9.h
}
136 // CHECK-ENCODING
: [0x02,0x7d,0xe4,0xc1]
137 // CHECK-ERROR
: instruction requires
: sme-b16b16
138 // CHECK-UNKNOWN
: c1e47d02
<unknown
>
140 bfadd za.h
[w11
, 2], {z8.h
- z9.h
} // 11000001-11100100-01111101-00000010
141 // CHECK-INST
: bfadd za.h
[w11
, 2, vgx2
], { z8.h
, z9.h
}
142 // CHECK-ENCODING
: [0x02,0x7d,0xe4,0xc1]
143 // CHECK-ERROR
: instruction requires
: sme-b16b16
144 // CHECK-UNKNOWN
: c1e47d02
<unknown
>
146 bfadd za.h
[w9
, 7, vgx2
], {z12.h
, z13.h
} // 11000001-11100100-00111101-10000111
147 // CHECK-INST
: bfadd za.h
[w9
, 7, vgx2
], { z12.h
, z13.h
}
148 // CHECK-ENCODING
: [0x87,0x3d,0xe4,0xc1]
149 // CHECK-ERROR
: instruction requires
: sme-b16b16
150 // CHECK-UNKNOWN
: c1e43d87
<unknown
>
152 bfadd za.h
[w9
, 7], {z12.h
- z13.h
} // 11000001-11100100-00111101-10000111
153 // CHECK-INST
: bfadd za.h
[w9
, 7, vgx2
], { z12.h
, z13.h
}
154 // CHECK-ENCODING
: [0x87,0x3d,0xe4,0xc1]
155 // CHECK-ERROR
: instruction requires
: sme-b16b16
156 // CHECK-UNKNOWN
: c1e43d87
<unknown
>
158 bfadd za.h
[w8
, 0, vgx4
], {z0.h
- z3.h
} // 11000001-11100101-00011100-00000000
159 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx4
], { z0.h
- z3.h
}
160 // CHECK-ENCODING
: [0x00,0x1c,0xe5,0xc1]
161 // CHECK-ERROR
: instruction requires
: sme-b16b16
162 // CHECK-UNKNOWN
: c1e51c00
<unknown
>
164 bfadd za.h
[w8
, 0], {z0.h
- z3.h
} // 11000001-11100101-00011100-00000000
165 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx4
], { z0.h
- z3.h
}
166 // CHECK-ENCODING
: [0x00,0x1c,0xe5,0xc1]
167 // CHECK-ERROR
: instruction requires
: sme-b16b16
168 // CHECK-UNKNOWN
: c1e51c00
<unknown
>
170 bfadd za.h
[w10
, 5, vgx4
], {z8.h
- z11.h
} // 11000001-11100101-01011101-00000101
171 // CHECK-INST
: bfadd za.h
[w10
, 5, vgx4
], { z8.h
- z11.h
}
172 // CHECK-ENCODING
: [0x05,0x5d,0xe5,0xc1]
173 // CHECK-ERROR
: instruction requires
: sme-b16b16
174 // CHECK-UNKNOWN
: c1e55d05
<unknown
>
176 bfadd za.h
[w10
, 5], {z8.h
- z11.h
} // 11000001-11100101-01011101-00000101
177 // CHECK-INST
: bfadd za.h
[w10
, 5, vgx4
], { z8.h
- z11.h
}
178 // CHECK-ENCODING
: [0x05,0x5d,0xe5,0xc1]
179 // CHECK-ERROR
: instruction requires
: sme-b16b16
180 // CHECK-UNKNOWN
: c1e55d05
<unknown
>
182 bfadd za.h
[w11
, 7, vgx4
], {z12.h
- z15.h
} // 11000001-11100101-01111101-10000111
183 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx4
], { z12.h
- z15.h
}
184 // CHECK-ENCODING
: [0x87,0x7d,0xe5,0xc1]
185 // CHECK-ERROR
: instruction requires
: sme-b16b16
186 // CHECK-UNKNOWN
: c1e57d87
<unknown
>
188 bfadd za.h
[w11
, 7], {z12.h
- z15.h
} // 11000001-11100101-01111101-10000111
189 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx4
], { z12.h
- z15.h
}
190 // CHECK-ENCODING
: [0x87,0x7d,0xe5,0xc1]
191 // CHECK-ERROR
: instruction requires
: sme-b16b16
192 // CHECK-UNKNOWN
: c1e57d87
<unknown
>
194 bfadd za.h
[w11
, 7, vgx4
], {z28.h
- z31.h
} // 11000001-11100101-01111111-10000111
195 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx4
], { z28.h
- z31.h
}
196 // CHECK-ENCODING
: [0x87,0x7f,0xe5,0xc1]
197 // CHECK-ERROR
: instruction requires
: sme-b16b16
198 // CHECK-UNKNOWN
: c1e57f87
<unknown
>
200 bfadd za.h
[w11
, 7], {z28.h
- z31.h
} // 11000001-11100101-01111111-10000111
201 // CHECK-INST
: bfadd za.h
[w11
, 7, vgx4
], { z28.h
- z31.h
}
202 // CHECK-ENCODING
: [0x87,0x7f,0xe5,0xc1]
203 // CHECK-ERROR
: instruction requires
: sme-b16b16
204 // CHECK-UNKNOWN
: c1e57f87
<unknown
>
206 bfadd za.h
[w8
, 5, vgx4
], {z16.h
- z19.h
} // 11000001-11100101-00011110-00000101
207 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx4
], { z16.h
- z19.h
}
208 // CHECK-ENCODING
: [0x05,0x1e,0xe5,0xc1]
209 // CHECK-ERROR
: instruction requires
: sme-b16b16
210 // CHECK-UNKNOWN
: c1e51e05
<unknown
>
212 bfadd za.h
[w8
, 5], {z16.h
- z19.h
} // 11000001-11100101-00011110-00000101
213 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx4
], { z16.h
- z19.h
}
214 // CHECK-ENCODING
: [0x05,0x1e,0xe5,0xc1]
215 // CHECK-ERROR
: instruction requires
: sme-b16b16
216 // CHECK-UNKNOWN
: c1e51e05
<unknown
>
218 bfadd za.h
[w8
, 1, vgx4
], {z0.h
- z3.h
} // 11000001-11100101-00011100-00000001
219 // CHECK-INST
: bfadd za.h
[w8
, 1, vgx4
], { z0.h
- z3.h
}
220 // CHECK-ENCODING
: [0x01,0x1c,0xe5,0xc1]
221 // CHECK-ERROR
: instruction requires
: sme-b16b16
222 // CHECK-UNKNOWN
: c1e51c01
<unknown
>
224 bfadd za.h
[w8
, 1], {z0.h
- z3.h
} // 11000001-11100101-00011100-00000001
225 // CHECK-INST
: bfadd za.h
[w8
, 1, vgx4
], { z0.h
- z3.h
}
226 // CHECK-ENCODING
: [0x01,0x1c,0xe5,0xc1]
227 // CHECK-ERROR
: instruction requires
: sme-b16b16
228 // CHECK-UNKNOWN
: c1e51c01
<unknown
>
230 bfadd za.h
[w10
, 0, vgx4
], {z16.h
- z19.h
} // 11000001-11100101-01011110-00000000
231 // CHECK-INST
: bfadd za.h
[w10
, 0, vgx4
], { z16.h
- z19.h
}
232 // CHECK-ENCODING
: [0x00,0x5e,0xe5,0xc1]
233 // CHECK-ERROR
: instruction requires
: sme-b16b16
234 // CHECK-UNKNOWN
: c1e55e00
<unknown
>
236 bfadd za.h
[w10
, 0], {z16.h
- z19.h
} // 11000001-11100101-01011110-00000000
237 // CHECK-INST
: bfadd za.h
[w10
, 0, vgx4
], { z16.h
- z19.h
}
238 // CHECK-ENCODING
: [0x00,0x5e,0xe5,0xc1]
239 // CHECK-ERROR
: instruction requires
: sme-b16b16
240 // CHECK-UNKNOWN
: c1e55e00
<unknown
>
242 bfadd za.h
[w8
, 0, vgx4
], {z12.h
- z15.h
} // 11000001-11100101-00011101-10000000
243 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx4
], { z12.h
- z15.h
}
244 // CHECK-ENCODING
: [0x80,0x1d,0xe5,0xc1]
245 // CHECK-ERROR
: instruction requires
: sme-b16b16
246 // CHECK-UNKNOWN
: c1e51d80
<unknown
>
248 bfadd za.h
[w8
, 0], {z12.h
- z15.h
} // 11000001-11100101-00011101-10000000
249 // CHECK-INST
: bfadd za.h
[w8
, 0, vgx4
], { z12.h
- z15.h
}
250 // CHECK-ENCODING
: [0x80,0x1d,0xe5,0xc1]
251 // CHECK-ERROR
: instruction requires
: sme-b16b16
252 // CHECK-UNKNOWN
: c1e51d80
<unknown
>
254 bfadd za.h
[w10
, 1, vgx4
], {z0.h
- z3.h
} // 11000001-11100101-01011100-00000001
255 // CHECK-INST
: bfadd za.h
[w10
, 1, vgx4
], { z0.h
- z3.h
}
256 // CHECK-ENCODING
: [0x01,0x5c,0xe5,0xc1]
257 // CHECK-ERROR
: instruction requires
: sme-b16b16
258 // CHECK-UNKNOWN
: c1e55c01
<unknown
>
260 bfadd za.h
[w10
, 1], {z0.h
- z3.h
} // 11000001-11100101-01011100-00000001
261 // CHECK-INST
: bfadd za.h
[w10
, 1, vgx4
], { z0.h
- z3.h
}
262 // CHECK-ENCODING
: [0x01,0x5c,0xe5,0xc1]
263 // CHECK-ERROR
: instruction requires
: sme-b16b16
264 // CHECK-UNKNOWN
: c1e55c01
<unknown
>
266 bfadd za.h
[w8
, 5, vgx4
], {z20.h
- z23.h
} // 11000001-11100101-00011110-10000101
267 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx4
], { z20.h
- z23.h
}
268 // CHECK-ENCODING
: [0x85,0x1e,0xe5,0xc1]
269 // CHECK-ERROR
: instruction requires
: sme-b16b16
270 // CHECK-UNKNOWN
: c1e51e85
<unknown
>
272 bfadd za.h
[w8
, 5], {z20.h
- z23.h
} // 11000001-11100101-00011110-10000101
273 // CHECK-INST
: bfadd za.h
[w8
, 5, vgx4
], { z20.h
- z23.h
}
274 // CHECK-ENCODING
: [0x85,0x1e,0xe5,0xc1]
275 // CHECK-ERROR
: instruction requires
: sme-b16b16
276 // CHECK-UNKNOWN
: c1e51e85
<unknown
>
278 bfadd za.h
[w11
, 2, vgx4
], {z8.h
- z11.h
} // 11000001-11100101-01111101-00000010
279 // CHECK-INST
: bfadd za.h
[w11
, 2, vgx4
], { z8.h
- z11.h
}
280 // CHECK-ENCODING
: [0x02,0x7d,0xe5,0xc1]
281 // CHECK-ERROR
: instruction requires
: sme-b16b16
282 // CHECK-UNKNOWN
: c1e57d02
<unknown
>
284 bfadd za.h
[w11
, 2], {z8.h
- z11.h
} // 11000001-11100101-01111101-00000010
285 // CHECK-INST
: bfadd za.h
[w11
, 2, vgx4
], { z8.h
- z11.h
}
286 // CHECK-ENCODING
: [0x02,0x7d,0xe5,0xc1]
287 // CHECK-ERROR
: instruction requires
: sme-b16b16
288 // CHECK-UNKNOWN
: c1e57d02
<unknown
>
290 bfadd za.h
[w9
, 7, vgx4
], {z12.h
- z15.h
} // 11000001-11100101-00111101-10000111
291 // CHECK-INST
: bfadd za.h
[w9
, 7, vgx4
], { z12.h
- z15.h
}
292 // CHECK-ENCODING
: [0x87,0x3d,0xe5,0xc1]
293 // CHECK-ERROR
: instruction requires
: sme-b16b16
294 // CHECK-UNKNOWN
: c1e53d87
<unknown
>
296 bfadd za.h
[w9
, 7], {z12.h
- z15.h
} // 11000001-11100101-00111101-10000111
297 // CHECK-INST
: bfadd za.h
[w9
, 7, vgx4
], { z12.h
- z15.h
}
298 // CHECK-ENCODING
: [0x87,0x3d,0xe5,0xc1]
299 // CHECK-ERROR
: instruction requires
: sme-b16b16
300 // CHECK-UNKNOWN
: c1e53d87
<unknown
>