1 # AArch64 SVE instruction descriptions
3 # Copyright (c) 2017 Linaro, Ltd
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public
7 # License as published by the Free Software Foundation; either
8 # version 2 of the License, or (at your option) any later version.
10 # This library is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 # This file is processed by scripts/decodetree.py
22 ###########################################################################
23 # Named fields. These are primarily for disjoint fields.
25 %imm4_16_p1 16:4 !function=plus1
29 %imm9_16_10 16:s6 10:3
31 # A combination of tsz:imm3 -- extract esize.
32 %tszimm_esz 22:2 5:5 !function=tszimm_esz
33 # A combination of tsz:imm3 -- extract (2 * esize) - (tsz:imm3)
34 %tszimm_shr 22:2 5:5 !function=tszimm_shr
35 # A combination of tsz:imm3 -- extract (tsz:imm3) - esize
36 %tszimm_shl 22:2 5:5 !function=tszimm_shl
38 # Similarly for the tszh/tszl pair at 22/16 for zzi
39 %tszimm16_esz 22:2 16:5 !function=tszimm_esz
40 %tszimm16_shr 22:2 16:5 !function=tszimm_shr
41 %tszimm16_shl 22:2 16:5 !function=tszimm_shl
43 # Signed 8-bit immediate, optionally shifted left by 8.
44 %sh8_i8s 5:9 !function=expand_imm_sh8s
46 # Either a copy of rd (at bit 0), or a different source
47 # as propagated via the MOVPRFX instruction.
50 ###########################################################################
51 # Named attribute sets. These are used to make nice(er) names
52 # when creating helpers common to those for the individual
53 # instruction patterns.
59 &rri_esz rd rn imm esz
64 &rprr_esz rd pg rn rm esz
65 &rprrr_esz rd pg rn rm ra esz
66 &rpri_esz rd pg rn imm esz
68 &incdec_cnt rd pat esz imm d u
69 &incdec2_cnt rd rn pat esz imm d u
70 &incdec_pred rd pg esz d u
71 &incdec2_pred rd rn pg esz d u
73 ###########################################################################
74 # Named instruction formats. These are generally used to
75 # reduce the amount of duplication between instruction patterns.
77 # Two operand with unused vector element size
78 @pd_pn_e0 ........ ........ ....... rn:4 . rd:4 &rr_esz esz=0
81 @pd_pn ........ esz:2 .. .... ....... rn:4 . rd:4 &rr_esz
82 @rd_rn ........ esz:2 ...... ...... rn:5 rd:5 &rr_esz
84 # Two operand with governing predicate, flags setting
85 @pd_pg_pn_s ........ . s:1 ...... .. pg:4 . rn:4 . rd:4 &rpr_s
87 # Three operand with unused vector element size
88 @rd_rn_rm_e0 ........ ... rm:5 ... ... rn:5 rd:5 &rrr_esz esz=0
90 # Three predicate operand, with governing predicate, flag setting
91 @pd_pg_pn_pm_s ........ . s:1 .. rm:4 .. pg:4 . rn:4 . rd:4 &rprr_s
93 # Three operand, vector element size
94 @rd_rn_rm ........ esz:2 . rm:5 ... ... rn:5 rd:5 &rrr_esz
95 @pd_pn_pm ........ esz:2 .. rm:4 ....... rn:4 . rd:4 &rrr_esz
96 @rdn_rm ........ esz:2 ...... ...... rm:5 rd:5 \
97 &rrr_esz rn=%reg_movprfx
99 # Three operand with "memory" size, aka immediate left shift
100 @rd_rn_msz_rm ........ ... rm:5 .... imm:2 rn:5 rd:5 &rrri
102 # Two register operand, with governing predicate, vector element size
103 @rdn_pg_rm ........ esz:2 ... ... ... pg:3 rm:5 rd:5 \
104 &rprr_esz rn=%reg_movprfx
105 @rdm_pg_rn ........ esz:2 ... ... ... pg:3 rn:5 rd:5 \
106 &rprr_esz rm=%reg_movprfx
107 @rd_pg4_rn_rm ........ esz:2 . rm:5 .. pg:4 rn:5 rd:5 &rprr_esz
108 @pd_pg_rn_rm ........ esz:2 . rm:5 ... pg:3 rn:5 . rd:4 &rprr_esz
110 # Three register operand, with governing predicate, vector element size
111 @rda_pg_rn_rm ........ esz:2 . rm:5 ... pg:3 rn:5 rd:5 \
112 &rprrr_esz ra=%reg_movprfx
113 @rdn_pg_ra_rm ........ esz:2 . rm:5 ... pg:3 ra:5 rd:5 \
114 &rprrr_esz rn=%reg_movprfx
116 # One register operand, with governing predicate, vector element size
117 @rd_pg_rn ........ esz:2 ... ... ... pg:3 rn:5 rd:5 &rpr_esz
118 @rd_pg4_pn ........ esz:2 ... ... .. pg:4 . rn:4 rd:5 &rpr_esz
120 # Two register operands with a 6-bit signed immediate.
121 @rd_rn_i6 ........ ... rn:5 ..... imm:s6 rd:5 &rri
123 # Two register operand, one immediate operand, with predicate,
124 # element size encoded as TSZHL. User must fill in imm.
125 @rdn_pg_tszimm ........ .. ... ... ... pg:3 ..... rd:5 \
126 &rpri_esz rn=%reg_movprfx esz=%tszimm_esz
128 # Similarly without predicate.
129 @rd_rn_tszimm ........ .. ... ... ...... rn:5 rd:5 \
130 &rri_esz esz=%tszimm16_esz
132 # Two register operand, one immediate operand, with 4-bit predicate.
133 # User must fill in imm.
134 @rdn_pg4 ........ esz:2 .. pg:4 ... ........ rd:5 \
135 &rpri_esz rn=%reg_movprfx
137 # Two register operand, one encoded bitmask.
138 @rdn_dbm ........ .. .... dbm:13 rd:5 \
139 &rr_dbm rn=%reg_movprfx
141 # Predicate output, vector and immediate input,
142 # controlling predicate, element size.
143 @pd_pg_rn_i7 ........ esz:2 . imm:7 . pg:3 rn:5 . rd:4 &rpri_esz
144 @pd_pg_rn_i5 ........ esz:2 . imm:s5 ... pg:3 rn:5 . rd:4 &rpri_esz
146 # Basic Load/Store with 9-bit immediate offset
147 @pd_rn_i9 ........ ........ ...... rn:5 . rd:4 \
149 @rd_rn_i9 ........ ........ ...... rn:5 rd:5 \
152 # One register, pattern, and uint4+1.
153 # User must fill in U and D.
154 @incdec_cnt ........ esz:2 .. .... ...... pat:5 rd:5 \
155 &incdec_cnt imm=%imm4_16_p1
156 @incdec2_cnt ........ esz:2 .. .... ...... pat:5 rd:5 \
157 &incdec2_cnt imm=%imm4_16_p1 rn=%reg_movprfx
159 # One register, predicate.
160 # User must fill in U and D.
161 @incdec_pred ........ esz:2 .... .. ..... .. pg:4 rd:5 &incdec_pred
162 @incdec2_pred ........ esz:2 .... .. ..... .. pg:4 rd:5 \
163 &incdec2_pred rn=%reg_movprfx
165 ###########################################################################
166 # Instruction patterns. Grouped according to the SVE encodingindex.xhtml.
168 ### SVE Integer Arithmetic - Binary Predicated Group
170 # SVE bitwise logical vector operations (predicated)
171 ORR_zpzz 00000100 .. 011 000 000 ... ..... ..... @rdn_pg_rm
172 EOR_zpzz 00000100 .. 011 001 000 ... ..... ..... @rdn_pg_rm
173 AND_zpzz 00000100 .. 011 010 000 ... ..... ..... @rdn_pg_rm
174 BIC_zpzz 00000100 .. 011 011 000 ... ..... ..... @rdn_pg_rm
176 # SVE integer add/subtract vectors (predicated)
177 ADD_zpzz 00000100 .. 000 000 000 ... ..... ..... @rdn_pg_rm
178 SUB_zpzz 00000100 .. 000 001 000 ... ..... ..... @rdn_pg_rm
179 SUB_zpzz 00000100 .. 000 011 000 ... ..... ..... @rdm_pg_rn # SUBR
181 # SVE integer min/max/difference (predicated)
182 SMAX_zpzz 00000100 .. 001 000 000 ... ..... ..... @rdn_pg_rm
183 UMAX_zpzz 00000100 .. 001 001 000 ... ..... ..... @rdn_pg_rm
184 SMIN_zpzz 00000100 .. 001 010 000 ... ..... ..... @rdn_pg_rm
185 UMIN_zpzz 00000100 .. 001 011 000 ... ..... ..... @rdn_pg_rm
186 SABD_zpzz 00000100 .. 001 100 000 ... ..... ..... @rdn_pg_rm
187 UABD_zpzz 00000100 .. 001 101 000 ... ..... ..... @rdn_pg_rm
189 # SVE integer multiply/divide (predicated)
190 MUL_zpzz 00000100 .. 010 000 000 ... ..... ..... @rdn_pg_rm
191 SMULH_zpzz 00000100 .. 010 010 000 ... ..... ..... @rdn_pg_rm
192 UMULH_zpzz 00000100 .. 010 011 000 ... ..... ..... @rdn_pg_rm
193 # Note that divide requires size >= 2; below 2 is unallocated.
194 SDIV_zpzz 00000100 .. 010 100 000 ... ..... ..... @rdn_pg_rm
195 UDIV_zpzz 00000100 .. 010 101 000 ... ..... ..... @rdn_pg_rm
196 SDIV_zpzz 00000100 .. 010 110 000 ... ..... ..... @rdm_pg_rn # SDIVR
197 UDIV_zpzz 00000100 .. 010 111 000 ... ..... ..... @rdm_pg_rn # UDIVR
199 ### SVE Integer Reduction Group
201 # SVE bitwise logical reduction (predicated)
202 ORV 00000100 .. 011 000 001 ... ..... ..... @rd_pg_rn
203 EORV 00000100 .. 011 001 001 ... ..... ..... @rd_pg_rn
204 ANDV 00000100 .. 011 010 001 ... ..... ..... @rd_pg_rn
206 # SVE integer add reduction (predicated)
207 # Note that saddv requires size != 3.
208 UADDV 00000100 .. 000 001 001 ... ..... ..... @rd_pg_rn
209 SADDV 00000100 .. 000 000 001 ... ..... ..... @rd_pg_rn
211 # SVE integer min/max reduction (predicated)
212 SMAXV 00000100 .. 001 000 001 ... ..... ..... @rd_pg_rn
213 UMAXV 00000100 .. 001 001 001 ... ..... ..... @rd_pg_rn
214 SMINV 00000100 .. 001 010 001 ... ..... ..... @rd_pg_rn
215 UMINV 00000100 .. 001 011 001 ... ..... ..... @rd_pg_rn
217 ### SVE Shift by Immediate - Predicated Group
219 # SVE bitwise shift by immediate (predicated)
220 ASR_zpzi 00000100 .. 000 000 100 ... .. ... ..... \
221 @rdn_pg_tszimm imm=%tszimm_shr
222 LSR_zpzi 00000100 .. 000 001 100 ... .. ... ..... \
223 @rdn_pg_tszimm imm=%tszimm_shr
224 LSL_zpzi 00000100 .. 000 011 100 ... .. ... ..... \
225 @rdn_pg_tszimm imm=%tszimm_shl
226 ASRD 00000100 .. 000 100 100 ... .. ... ..... \
227 @rdn_pg_tszimm imm=%tszimm_shr
229 # SVE bitwise shift by vector (predicated)
230 ASR_zpzz 00000100 .. 010 000 100 ... ..... ..... @rdn_pg_rm
231 LSR_zpzz 00000100 .. 010 001 100 ... ..... ..... @rdn_pg_rm
232 LSL_zpzz 00000100 .. 010 011 100 ... ..... ..... @rdn_pg_rm
233 ASR_zpzz 00000100 .. 010 100 100 ... ..... ..... @rdm_pg_rn # ASRR
234 LSR_zpzz 00000100 .. 010 101 100 ... ..... ..... @rdm_pg_rn # LSRR
235 LSL_zpzz 00000100 .. 010 111 100 ... ..... ..... @rdm_pg_rn # LSLR
237 # SVE bitwise shift by wide elements (predicated)
238 # Note these require size != 3.
239 ASR_zpzw 00000100 .. 011 000 100 ... ..... ..... @rdn_pg_rm
240 LSR_zpzw 00000100 .. 011 001 100 ... ..... ..... @rdn_pg_rm
241 LSL_zpzw 00000100 .. 011 011 100 ... ..... ..... @rdn_pg_rm
243 ### SVE Integer Arithmetic - Unary Predicated Group
245 # SVE unary bit operations (predicated)
246 # Note esz != 0 for FABS and FNEG.
247 CLS 00000100 .. 011 000 101 ... ..... ..... @rd_pg_rn
248 CLZ 00000100 .. 011 001 101 ... ..... ..... @rd_pg_rn
249 CNT_zpz 00000100 .. 011 010 101 ... ..... ..... @rd_pg_rn
250 CNOT 00000100 .. 011 011 101 ... ..... ..... @rd_pg_rn
251 NOT_zpz 00000100 .. 011 110 101 ... ..... ..... @rd_pg_rn
252 FABS 00000100 .. 011 100 101 ... ..... ..... @rd_pg_rn
253 FNEG 00000100 .. 011 101 101 ... ..... ..... @rd_pg_rn
255 # SVE integer unary operations (predicated)
256 # Note esz > original size for extensions.
257 ABS 00000100 .. 010 110 101 ... ..... ..... @rd_pg_rn
258 NEG 00000100 .. 010 111 101 ... ..... ..... @rd_pg_rn
259 SXTB 00000100 .. 010 000 101 ... ..... ..... @rd_pg_rn
260 UXTB 00000100 .. 010 001 101 ... ..... ..... @rd_pg_rn
261 SXTH 00000100 .. 010 010 101 ... ..... ..... @rd_pg_rn
262 UXTH 00000100 .. 010 011 101 ... ..... ..... @rd_pg_rn
263 SXTW 00000100 .. 010 100 101 ... ..... ..... @rd_pg_rn
264 UXTW 00000100 .. 010 101 101 ... ..... ..... @rd_pg_rn
266 ### SVE Integer Multiply-Add Group
268 # SVE integer multiply-add writing addend (predicated)
269 MLA 00000100 .. 0 ..... 010 ... ..... ..... @rda_pg_rn_rm
270 MLS 00000100 .. 0 ..... 011 ... ..... ..... @rda_pg_rn_rm
272 # SVE integer multiply-add writing multiplicand (predicated)
273 MLA 00000100 .. 0 ..... 110 ... ..... ..... @rdn_pg_ra_rm # MAD
274 MLS 00000100 .. 0 ..... 111 ... ..... ..... @rdn_pg_ra_rm # MSB
276 ### SVE Integer Arithmetic - Unpredicated Group
278 # SVE integer add/subtract vectors (unpredicated)
279 ADD_zzz 00000100 .. 1 ..... 000 000 ..... ..... @rd_rn_rm
280 SUB_zzz 00000100 .. 1 ..... 000 001 ..... ..... @rd_rn_rm
281 SQADD_zzz 00000100 .. 1 ..... 000 100 ..... ..... @rd_rn_rm
282 UQADD_zzz 00000100 .. 1 ..... 000 101 ..... ..... @rd_rn_rm
283 SQSUB_zzz 00000100 .. 1 ..... 000 110 ..... ..... @rd_rn_rm
284 UQSUB_zzz 00000100 .. 1 ..... 000 111 ..... ..... @rd_rn_rm
286 ### SVE Logical - Unpredicated Group
288 # SVE bitwise logical operations (unpredicated)
289 AND_zzz 00000100 00 1 ..... 001 100 ..... ..... @rd_rn_rm_e0
290 ORR_zzz 00000100 01 1 ..... 001 100 ..... ..... @rd_rn_rm_e0
291 EOR_zzz 00000100 10 1 ..... 001 100 ..... ..... @rd_rn_rm_e0
292 BIC_zzz 00000100 11 1 ..... 001 100 ..... ..... @rd_rn_rm_e0
294 ### SVE Index Generation Group
296 # SVE index generation (immediate start, immediate increment)
297 INDEX_ii 00000100 esz:2 1 imm2:s5 010000 imm1:s5 rd:5
299 # SVE index generation (immediate start, register increment)
300 INDEX_ir 00000100 esz:2 1 rm:5 010010 imm:s5 rd:5
302 # SVE index generation (register start, immediate increment)
303 INDEX_ri 00000100 esz:2 1 imm:s5 010001 rn:5 rd:5
305 # SVE index generation (register start, register increment)
306 INDEX_rr 00000100 .. 1 ..... 010011 ..... ..... @rd_rn_rm
308 ### SVE Stack Allocation Group
310 # SVE stack frame adjustment
311 ADDVL 00000100 001 ..... 01010 ...... ..... @rd_rn_i6
312 ADDPL 00000100 011 ..... 01010 ...... ..... @rd_rn_i6
314 # SVE stack frame size
315 RDVL 00000100 101 11111 01010 imm:s6 rd:5
317 ### SVE Bitwise Shift - Unpredicated Group
319 # SVE bitwise shift by immediate (unpredicated)
320 ASR_zzi 00000100 .. 1 ..... 1001 00 ..... ..... \
321 @rd_rn_tszimm imm=%tszimm16_shr
322 LSR_zzi 00000100 .. 1 ..... 1001 01 ..... ..... \
323 @rd_rn_tszimm imm=%tszimm16_shr
324 LSL_zzi 00000100 .. 1 ..... 1001 11 ..... ..... \
325 @rd_rn_tszimm imm=%tszimm16_shl
327 # SVE bitwise shift by wide elements (unpredicated)
329 ASR_zzw 00000100 .. 1 ..... 1000 00 ..... ..... @rd_rn_rm
330 LSR_zzw 00000100 .. 1 ..... 1000 01 ..... ..... @rd_rn_rm
331 LSL_zzw 00000100 .. 1 ..... 1000 11 ..... ..... @rd_rn_rm
333 ### SVE Compute Vector Address Group
335 # SVE vector address generation
336 ADR_s32 00000100 00 1 ..... 1010 .. ..... ..... @rd_rn_msz_rm
337 ADR_u32 00000100 01 1 ..... 1010 .. ..... ..... @rd_rn_msz_rm
338 ADR_p32 00000100 10 1 ..... 1010 .. ..... ..... @rd_rn_msz_rm
339 ADR_p64 00000100 11 1 ..... 1010 .. ..... ..... @rd_rn_msz_rm
341 ### SVE Integer Misc - Unpredicated Group
343 # SVE floating-point exponential accelerator
345 FEXPA 00000100 .. 1 00000 101110 ..... ..... @rd_rn
347 # SVE floating-point trig select coefficient
349 FTSSEL 00000100 .. 1 ..... 101100 ..... ..... @rd_rn_rm
351 ### SVE Element Count Group
354 CNT_r 00000100 .. 10 .... 1110 0 0 ..... ..... @incdec_cnt d=0 u=1
356 # SVE inc/dec register by element count
357 INCDEC_r 00000100 .. 11 .... 1110 0 d:1 ..... ..... @incdec_cnt u=1
359 # SVE saturating inc/dec register by element count
360 SINCDEC_r_32 00000100 .. 10 .... 1111 d:1 u:1 ..... ..... @incdec_cnt
361 SINCDEC_r_64 00000100 .. 11 .... 1111 d:1 u:1 ..... ..... @incdec_cnt
363 # SVE inc/dec vector by element count
364 # Note this requires esz != 0.
365 INCDEC_v 00000100 .. 1 1 .... 1100 0 d:1 ..... ..... @incdec2_cnt u=1
367 # SVE saturating inc/dec vector by element count
368 # Note these require esz != 0.
369 SINCDEC_v 00000100 .. 1 0 .... 1100 d:1 u:1 ..... ..... @incdec2_cnt
371 ### SVE Bitwise Immediate Group
373 # SVE bitwise logical with immediate (unpredicated)
374 ORR_zzi 00000101 00 0000 ............. ..... @rdn_dbm
375 EOR_zzi 00000101 01 0000 ............. ..... @rdn_dbm
376 AND_zzi 00000101 10 0000 ............. ..... @rdn_dbm
378 # SVE broadcast bitmask immediate
379 DUPM 00000101 11 0000 dbm:13 rd:5
381 ### SVE Integer Wide Immediate - Predicated Group
383 # SVE copy floating-point immediate (predicated)
384 FCPY 00000101 .. 01 .... 110 imm:8 ..... @rdn_pg4
386 # SVE copy integer immediate (predicated)
387 CPY_m_i 00000101 .. 01 .... 01 . ........ ..... @rdn_pg4 imm=%sh8_i8s
388 CPY_z_i 00000101 .. 01 .... 00 . ........ ..... @rdn_pg4 imm=%sh8_i8s
390 ### SVE Permute - Extract Group
392 # SVE extract vector (immediate offset)
393 EXT 00000101 001 ..... 000 ... rm:5 rd:5 \
394 &rrri rn=%reg_movprfx imm=%imm8_16_10
396 ### SVE Permute - Unpredicated Group
398 # SVE broadcast general register
399 DUP_s 00000101 .. 1 00000 001110 ..... ..... @rd_rn
401 # SVE broadcast indexed element
402 DUP_x 00000101 .. 1 ..... 001000 rn:5 rd:5 \
405 # SVE insert SIMD&FP scalar register
406 INSR_f 00000101 .. 1 10100 001110 ..... ..... @rdn_rm
408 # SVE insert general register
409 INSR_r 00000101 .. 1 00100 001110 ..... ..... @rdn_rm
411 # SVE reverse vector elements
412 REV_v 00000101 .. 1 11000 001110 ..... ..... @rd_rn
414 # SVE vector table lookup
415 TBL 00000101 .. 1 ..... 001100 ..... ..... @rd_rn_rm
417 # SVE unpack vector elements
418 UNPK 00000101 esz:2 1100 u:1 h:1 001110 rn:5 rd:5
420 ### SVE Permute - Predicates Group
422 # SVE permute predicate elements
423 ZIP1_p 00000101 .. 10 .... 010 000 0 .... 0 .... @pd_pn_pm
424 ZIP2_p 00000101 .. 10 .... 010 001 0 .... 0 .... @pd_pn_pm
425 UZP1_p 00000101 .. 10 .... 010 010 0 .... 0 .... @pd_pn_pm
426 UZP2_p 00000101 .. 10 .... 010 011 0 .... 0 .... @pd_pn_pm
427 TRN1_p 00000101 .. 10 .... 010 100 0 .... 0 .... @pd_pn_pm
428 TRN2_p 00000101 .. 10 .... 010 101 0 .... 0 .... @pd_pn_pm
430 # SVE reverse predicate elements
431 REV_p 00000101 .. 11 0100 010 000 0 .... 0 .... @pd_pn
433 # SVE unpack predicate elements
434 PUNPKLO 00000101 00 11 0000 010 000 0 .... 0 .... @pd_pn_e0
435 PUNPKHI 00000101 00 11 0001 010 000 0 .... 0 .... @pd_pn_e0
437 ### SVE Permute - Interleaving Group
439 # SVE permute vector elements
440 ZIP1_z 00000101 .. 1 ..... 011 000 ..... ..... @rd_rn_rm
441 ZIP2_z 00000101 .. 1 ..... 011 001 ..... ..... @rd_rn_rm
442 UZP1_z 00000101 .. 1 ..... 011 010 ..... ..... @rd_rn_rm
443 UZP2_z 00000101 .. 1 ..... 011 011 ..... ..... @rd_rn_rm
444 TRN1_z 00000101 .. 1 ..... 011 100 ..... ..... @rd_rn_rm
445 TRN2_z 00000101 .. 1 ..... 011 101 ..... ..... @rd_rn_rm
447 ### SVE Permute - Predicated Group
449 # SVE compress active elements
451 COMPACT 00000101 .. 100001 100 ... ..... ..... @rd_pg_rn
453 # SVE conditionally broadcast element to vector
454 CLASTA_z 00000101 .. 10100 0 100 ... ..... ..... @rdn_pg_rm
455 CLASTB_z 00000101 .. 10100 1 100 ... ..... ..... @rdn_pg_rm
457 # SVE conditionally copy element to SIMD&FP scalar
458 CLASTA_v 00000101 .. 10101 0 100 ... ..... ..... @rd_pg_rn
459 CLASTB_v 00000101 .. 10101 1 100 ... ..... ..... @rd_pg_rn
461 # SVE conditionally copy element to general register
462 CLASTA_r 00000101 .. 11000 0 101 ... ..... ..... @rd_pg_rn
463 CLASTB_r 00000101 .. 11000 1 101 ... ..... ..... @rd_pg_rn
465 # SVE copy element to SIMD&FP scalar register
466 LASTA_v 00000101 .. 10001 0 100 ... ..... ..... @rd_pg_rn
467 LASTB_v 00000101 .. 10001 1 100 ... ..... ..... @rd_pg_rn
469 # SVE copy element to general register
470 LASTA_r 00000101 .. 10000 0 101 ... ..... ..... @rd_pg_rn
471 LASTB_r 00000101 .. 10000 1 101 ... ..... ..... @rd_pg_rn
473 # SVE copy element from SIMD&FP scalar register
474 CPY_m_v 00000101 .. 100000 100 ... ..... ..... @rd_pg_rn
476 # SVE copy element from general register to vector (predicated)
477 CPY_m_r 00000101 .. 101000 101 ... ..... ..... @rd_pg_rn
479 # SVE reverse within elements
480 # Note esz >= operation size
481 REVB 00000101 .. 1001 00 100 ... ..... ..... @rd_pg_rn
482 REVH 00000101 .. 1001 01 100 ... ..... ..... @rd_pg_rn
483 REVW 00000101 .. 1001 10 100 ... ..... ..... @rd_pg_rn
484 RBIT 00000101 .. 1001 11 100 ... ..... ..... @rd_pg_rn
486 # SVE vector splice (predicated)
487 SPLICE 00000101 .. 101 100 100 ... ..... ..... @rdn_pg_rm
489 ### SVE Select Vectors Group
491 # SVE select vector elements (predicated)
492 SEL_zpzz 00000101 .. 1 ..... 11 .... ..... ..... @rd_pg4_rn_rm
494 ### SVE Integer Compare - Vectors Group
496 # SVE integer compare_vectors
497 CMPHS_ppzz 00100100 .. 0 ..... 000 ... ..... 0 .... @pd_pg_rn_rm
498 CMPHI_ppzz 00100100 .. 0 ..... 000 ... ..... 1 .... @pd_pg_rn_rm
499 CMPGE_ppzz 00100100 .. 0 ..... 100 ... ..... 0 .... @pd_pg_rn_rm
500 CMPGT_ppzz 00100100 .. 0 ..... 100 ... ..... 1 .... @pd_pg_rn_rm
501 CMPEQ_ppzz 00100100 .. 0 ..... 101 ... ..... 0 .... @pd_pg_rn_rm
502 CMPNE_ppzz 00100100 .. 0 ..... 101 ... ..... 1 .... @pd_pg_rn_rm
504 # SVE integer compare with wide elements
505 # Note these require esz != 3.
506 CMPEQ_ppzw 00100100 .. 0 ..... 001 ... ..... 0 .... @pd_pg_rn_rm
507 CMPNE_ppzw 00100100 .. 0 ..... 001 ... ..... 1 .... @pd_pg_rn_rm
508 CMPGE_ppzw 00100100 .. 0 ..... 010 ... ..... 0 .... @pd_pg_rn_rm
509 CMPGT_ppzw 00100100 .. 0 ..... 010 ... ..... 1 .... @pd_pg_rn_rm
510 CMPLT_ppzw 00100100 .. 0 ..... 011 ... ..... 0 .... @pd_pg_rn_rm
511 CMPLE_ppzw 00100100 .. 0 ..... 011 ... ..... 1 .... @pd_pg_rn_rm
512 CMPHS_ppzw 00100100 .. 0 ..... 110 ... ..... 0 .... @pd_pg_rn_rm
513 CMPHI_ppzw 00100100 .. 0 ..... 110 ... ..... 1 .... @pd_pg_rn_rm
514 CMPLO_ppzw 00100100 .. 0 ..... 111 ... ..... 0 .... @pd_pg_rn_rm
515 CMPLS_ppzw 00100100 .. 0 ..... 111 ... ..... 1 .... @pd_pg_rn_rm
517 ### SVE Integer Compare - Unsigned Immediate Group
519 # SVE integer compare with unsigned immediate
520 CMPHS_ppzi 00100100 .. 1 ....... 0 ... ..... 0 .... @pd_pg_rn_i7
521 CMPHI_ppzi 00100100 .. 1 ....... 0 ... ..... 1 .... @pd_pg_rn_i7
522 CMPLO_ppzi 00100100 .. 1 ....... 1 ... ..... 0 .... @pd_pg_rn_i7
523 CMPLS_ppzi 00100100 .. 1 ....... 1 ... ..... 1 .... @pd_pg_rn_i7
525 ### SVE Integer Compare - Signed Immediate Group
527 # SVE integer compare with signed immediate
528 CMPGE_ppzi 00100101 .. 0 ..... 000 ... ..... 0 .... @pd_pg_rn_i5
529 CMPGT_ppzi 00100101 .. 0 ..... 000 ... ..... 1 .... @pd_pg_rn_i5
530 CMPLT_ppzi 00100101 .. 0 ..... 001 ... ..... 0 .... @pd_pg_rn_i5
531 CMPLE_ppzi 00100101 .. 0 ..... 001 ... ..... 1 .... @pd_pg_rn_i5
532 CMPEQ_ppzi 00100101 .. 0 ..... 100 ... ..... 0 .... @pd_pg_rn_i5
533 CMPNE_ppzi 00100101 .. 0 ..... 100 ... ..... 1 .... @pd_pg_rn_i5
535 ### SVE Predicate Logical Operations Group
537 # SVE predicate logical operations
538 AND_pppp 00100101 0. 00 .... 01 .... 0 .... 0 .... @pd_pg_pn_pm_s
539 BIC_pppp 00100101 0. 00 .... 01 .... 0 .... 1 .... @pd_pg_pn_pm_s
540 EOR_pppp 00100101 0. 00 .... 01 .... 1 .... 0 .... @pd_pg_pn_pm_s
541 SEL_pppp 00100101 0. 00 .... 01 .... 1 .... 1 .... @pd_pg_pn_pm_s
542 ORR_pppp 00100101 1. 00 .... 01 .... 0 .... 0 .... @pd_pg_pn_pm_s
543 ORN_pppp 00100101 1. 00 .... 01 .... 0 .... 1 .... @pd_pg_pn_pm_s
544 NOR_pppp 00100101 1. 00 .... 01 .... 1 .... 0 .... @pd_pg_pn_pm_s
545 NAND_pppp 00100101 1. 00 .... 01 .... 1 .... 1 .... @pd_pg_pn_pm_s
547 ### SVE Predicate Misc Group
550 PTEST 00100101 01 010000 11 pg:4 0 rn:4 0 0000
552 # SVE predicate initialize
553 PTRUE 00100101 esz:2 01100 s:1 111000 pat:5 0 rd:4
556 SETFFR 00100101 0010 1100 1001 0000 0000 0000
558 # SVE zero predicate register
559 PFALSE 00100101 0001 1000 1110 0100 0000 rd:4
561 # SVE predicate read from FFR (predicated)
562 RDFFR_p 00100101 0 s:1 0110001111000 pg:4 0 rd:4
564 # SVE predicate read from FFR (unpredicated)
565 RDFFR 00100101 0001 1001 1111 0000 0000 rd:4
567 # SVE FFR write from predicate (WRFFR)
568 WRFFR 00100101 0010 1000 1001 000 rn:4 00000
570 # SVE predicate first active
571 PFIRST 00100101 01 011 000 11000 00 .... 0 .... @pd_pn_e0
573 # SVE predicate next active
574 PNEXT 00100101 .. 011 001 11000 10 .... 0 .... @pd_pn
576 ### SVE Partition Break Group
578 # SVE propagate break from previous partition
579 BRKPA 00100101 0. 00 .... 11 .... 0 .... 0 .... @pd_pg_pn_pm_s
580 BRKPB 00100101 0. 00 .... 11 .... 0 .... 1 .... @pd_pg_pn_pm_s
582 # SVE partition break condition
583 BRKA_z 00100101 0. 01000001 .... 0 .... 0 .... @pd_pg_pn_s
584 BRKB_z 00100101 1. 01000001 .... 0 .... 0 .... @pd_pg_pn_s
585 BRKA_m 00100101 0. 01000001 .... 0 .... 1 .... @pd_pg_pn_s
586 BRKB_m 00100101 1. 01000001 .... 0 .... 1 .... @pd_pg_pn_s
588 # SVE propagate break to next partition
589 BRKN 00100101 0. 01100001 .... 0 .... 0 .... @pd_pg_pn_s
591 ### SVE Predicate Count Group
593 # SVE predicate count
594 CNTP 00100101 .. 100 000 10 .... 0 .... ..... @rd_pg4_pn
596 # SVE inc/dec register by predicate count
597 INCDECP_r 00100101 .. 10110 d:1 10001 00 .... ..... @incdec_pred u=1
599 # SVE inc/dec vector by predicate count
600 INCDECP_z 00100101 .. 10110 d:1 10000 00 .... ..... @incdec2_pred u=1
602 # SVE saturating inc/dec register by predicate count
603 SINCDECP_r_32 00100101 .. 1010 d:1 u:1 10001 00 .... ..... @incdec_pred
604 SINCDECP_r_64 00100101 .. 1010 d:1 u:1 10001 10 .... ..... @incdec_pred
606 # SVE saturating inc/dec vector by predicate count
607 SINCDECP_z 00100101 .. 1010 d:1 u:1 10000 00 .... ..... @incdec2_pred
609 ### SVE Memory - 32-bit Gather and Unsized Contiguous Group
611 # SVE load predicate register
612 LDR_pri 10000101 10 ...... 000 ... ..... 0 .... @pd_rn_i9
614 # SVE load vector register
615 LDR_zri 10000101 10 ...... 010 ... ..... ..... @rd_rn_i9