Registers and encodings
VFP has 32 single-precision registers s0 to s31, which overlap the double-precision registers d0 to d15 (dn is s2n and s2n+1); VFPv3 and later (and NEON) add d16 to d31, and NEON also names pairs of them q0 to q15. The coprocessor number says the precision: 10 for single (.f32), 11 for double (.f64). The A32 and T32 encodings are the same (the T32 first halfword is the high half of the A32 word, with condition 1110); the explorer decodes them with the same code.
A register number is a 4-bit field plus one more bit (D, N or M): for a single register that bit is the least significant bit of the number, for a double register the most significant.
The mnemonic is v<op><cond>.<type>: the condition comes before the type suffix (vaddeq.f32 s0, s1, s2). The results of a VFP instruction are in the floating-point status register fpscr (flags N, Z, C, V in bits 31:28, rounding mode, exception enables); vmrs APSR_nzcv, fpscr copies the flags to the integer status.
Arithmetic
cond 1110 followed by opc1 (bits 23:20, with D in bit 22), Vn, Vd, 101z, N, op (bit 6), M, 0, Vm.
| Bits 23, 21, 20 (p q r) | Bit 6 = 0 | Bit 6 = 1 | Level |
|---|---|---|---|
| 0 0 0 | vmla Vd += Vn × Vm | vmls Vd −= Vn × Vm | VFPv2 |
| 0 0 1 | vnmls | vnmla | VFPv2 |
| 0 1 0 | vmul | vnmul | VFPv2 |
| 0 1 1 | vadd | vsub | VFPv2 |
| 1 0 0 | vdiv | (undefined) | VFPv2 |
| 1 0 1 | vfnms | vfnma | VFPv4 |
| 1 1 0 | vfma | vfms | VFPv4 |
| 1 1 1 | One-operand and special forms, chosen by Vn (bits 19:16) and bits 7:6: vmov (immediate: bits 7:4 = 0000, the 8-bit immediate is Vn:Vm), vmov (register, 0 / 01), vabs (0 / 11), vneg (1 / 01), vsqrt (1 / 11), vcmp and vcmpe (4 and 5, with #0), vrintr (6 / 01), vrintz (6 / 11), vrintx (7 / 01), vcvt (see below) | VFPv2 and later | |
The VFP immediate of vmov is written as LLVM does, #1.000000e+00: sign a, exponent bits NOT(b) and cd, fraction efgh; the value is ±(16 + efgh) / 16 × 2(exponent − 3). The ARMv8 floating-point additions are in the unconditional space (condition 1111): vseleq, vselvs, vselge, vselgt (bits 21:20 pick the condition), vmaxnm and vminnm (bit 6), vrinta, vrintn, vrintp, vrintm (Vn = 10rm). They need FP-ARMv8. ARMv8.3 (FEAT_JSCVT) adds vjcvt.s32.f64 Sd, Dm (cond 1110 1110 1D11 1001 Vd 1011 11M0 Vm, conditional like the other VFP data instructions): converts a double to a signed 32-bit integer with the JavaScript rounding rule; decoded at the ARMv8-A level only (GNU arm-dis.c line 1120 and LLVM ARMInstrVFP.td VJCVT: GNU/LLVM behaviour, not the ARM ARM).
Conversion
| Vn (opc2), bits 7:6 | Instruction |
|---|---|
| 0010, 0011 with bit 6 = 1 | vcvtb, vcvtt (bit 7): between half and single precision (.f32.f16, .f16.f32); ARMv8 adds half to and from double |
| 0111, 11 | vcvt.f64.f32 (cp 10) and vcvt.f32.f64 (cp 11) |
| 1000, x1 | vcvt.f32.s32, .u32 (bit 7: signed), also .f64: an integer in a single register to floating point |
| 1100, 1101, x1 | vcvt.u32.f32, vcvt.s32.f32 (bit 7 = 1: round toward zero) and vcvtr (bit 7 = 0: use the rounding mode in FPSCR) |
| 1010, 1011, 1110, 1111 | Fixed-point: vcvt.f32.s32 s0, s0, #fbits and back; bit 7 chooses 16 or 32 bits, the number of fraction bits is the size minus (imm4:i) |
| cond 1111, 1111 1110 1D11 1 rm … | vcvta, vcvtn, vcvtp, vcvtm (ARMv8): float to integer with the rounding named by the suffix |
Register transfers
| Pattern | Instruction |
|---|---|
| cond 1110 000 op Vn Rt 1010 N 001 0000 | vmov Sn, Rt (op 0), vmov Rt, Sn (op 1) |
| cond 1100 010 op Rt2 Rt 1011 00 M 1 Vm | vmov Dm, Rt, Rt2 and vmov Rt, Rt2, Dm; with 1010: vmov Sm, Sm+1, Rt, Rt2 (two consecutive single registers) |
| cond 1110 0opc1 0 Vn Rt 1011 N opc2 1 0000 | vmov.8/16/32 Dn[x], Rt: a core register into one lane |
| cond 1110 U opc1 1 Vn Rt 1011 N opc2 1 0000 | vmov.s8/u8/s16/u16/32 Rt, Dn[x] |
| cond 1110 1 B Q 0 Vd Rt 1011 D 0 E 1 0000 | vdup.8/16/32 Dd or Qd, Rt (Advanced SIMD) |
| cond 1110 1110 reg Rt 1010 0001 0000; 1110 1111 … | vmsr fpscr, Rt, vmrs Rt, fpscr; vmrs APSR_nzcv, fpscr when Rt is 15. Registers: 0 fpsid, 1 fpscr, 5 mvfr2, 6 mvfr1, 7 mvfr0, 8 fpexc, 9 fpinst, 10 fpinst2; ARMv8.1-M adds 2 fpscr_nzcvqc, 12 vpr, 13 p0, 14 fpcxtns, 15 fpcxts. The half-precision core-register moves are in the half-precision section. |
Load and store
| Pattern | Instruction |
|---|---|
| cond 1101 UD01 Rn Vd 101z imm8 | vldr Sd or Dd, [Rn, #±imm8 × 4]; vstr is UD00. Rn = pc: the address is aligned PC + 8 (or + 4 in Thumb) ± offset |
| cond 110 P U D W L Rn Vd 101z imm8 (PU = 01 or 10) | vldmia, vstmia (PU = 01), vldmdb, vstmdb (PU = 10, W = 1): a list of imm8 single registers or imm8 / 2 double ones. The decoder writes vpush for vstmdb sp! and vpop for vldmia sp!. With doubles, an odd imm8 is the legacy fldmiax, fstmiax, fldmdbx, fstmdbx. |
Floating-point unit versions
Which of the instructions above exist depends on the unit, not only on the architecture level. The decoder takes an fpu option (the ELF viewer calls it Floating-point unit, the Cortex-M and UF2 viewers FPU version) with the LLVM and GCC unit names. Without the option, a level that may have a unit decodes everything the level allows (for ARMv7E-M and ARMv8-M Mainline that is FPv5-D16: single and double precision, VFMA, VRINT, VSEL, VMAXNM), so a Cortex-M4F image reads correctly without a choice; with it, an instruction that the chosen unit does not have is shown as undefined, with the missing feature in the note (for example Needs vfp4).
| Unit (option value) | Double precision | D16 to D31 | VMOV immediate, fixed-point VCVT | VCVTB, VCVTT (half precision) | VFMA, VFMS, VFNMA, VFNMS | VRINT, VSEL, VMAXNM, VMINNM, VCVTA/N/P/M | Found in |
|---|---|---|---|---|---|---|---|
vfpv2 | yes | no | no | no | no | no | ARM1136JF-S, ARM926EJ-S with VFP |
vfpv3, vfpv3-d16 | yes | yes, no | yes | no | no | no | Cortex-A8, A9 |
vfpv3-fp16, vfpv3-d16-fp16 | yes | yes, no | yes | yes | no | no | Cortex-A9 |
vfpv4, vfpv4-d16 | yes | yes, no | yes | yes | yes | no | Cortex-A7, A15 |
fpv4-sp-d16 | no | no | yes | yes | yes | no | Cortex-M4F (nRF52, STM32F3 and F4, SAMD51) |
fpv5-sp-d16 | no | no | yes | yes | yes | yes | Cortex-M33, Cortex-M7 with the single-precision unit (RP2350, STM32L5) |
fpv5-d16 | yes | no | yes | yes | yes | yes | Cortex-M7 (STM32F7, H7), Cortex-M55, Cortex-M85 |
fp-armv8 | yes | yes | yes | yes | yes | yes | Cortex-A53, A57 |
neon, neon-fp16, neon-vfpv4, neon-fp-armv8 | the units VFPv3, VFPv3 with half precision, VFPv4 and FP-ARMv8 with Advanced SIMD | ||||||
The rules, checked word by word against LLVM for every unit (the suites t32-fp and a32-fp of test-arm-llvm.mjs sweep the whole coprocessor-9, -10 and -11 space; test-arm-fpu.mjs runs 28 sweeps, 1.9 million words, and a table of 48 instructions against all 15 units):
- A single-precision unit has no double-precision data processing, comparison or conversion (every coprocessor-11 data-processing word, and
vcvt.f64.f32), but it keeps the 64-bit data moves:vldr,vstr,vldm,vstm,vpush,vpopof D registers,vmov Rt, Rt2, Dmand the 32-bit scalar movevmov.32 Dn[x], Rt(LLVM decodes them atfpv4-sp-d16; compilers usevldr d0to copy 64 bits). The 8-bit and 16-bit scalar moves andvdupare Advanced SIMD. - A unit with 16 double registers (
-d16, and every M-profile unit) refuses D16 to D31 in data processing and moves, and calls a register list past D15 unpredictable. vmrs Rt, mvfr2exists from FP-ARMv8 and FPv5 on.vmsrandvmrsofvprandp0without the vector extension (Helium) are unpredictable (DDI0553B.z VMSR,<spec_reg>); LLVM refuses them.- The bfloat16 conversions
vcvtb.bf16.f32andvcvtt.bf16.f32need Advanced SIMD as well as FEAT_AA32BF16.setpanis not an Advanced SIMD instruction and stays when only a floating-point unit is chosen. - In an ELF file the unit comes from
Tag_FP_arch(2 VFPv2, 3 and 4 VFPv3, 5 and 6 VFPv4, 7 and 8 the Armv8 units),Tag_ABI_HardFP_use1 (single precision only: how a Cortex-M4F or Cortex-M33 build says so),Tag_VFP_HP_extensionandTag_Advanced_SIMD_arch. In a UF2 file the core of the family names it (a Cortex-M4F has FPv4-SP, a Cortex-M33 FPv5-SP).
Where LLVM and the manual differ the decoder follows the manual and the sweeps list the difference with its reason: LLVM decodes ldc2 and stc2 to coprocessors 10 and 11 without the Armv8 floating-point extension (undefined in DDI0406C), the A-profile target also decodes vmov.f64 Dd, Dm on a single-precision unit, and LLVM accepts the fixed-point vcvt at VFPv2, but DDI0406C.d lists it for VFPv3 and VFPv4 only (A8.8.309, “VFPv3, VFPv4”, and Table A7-17 rows 101x x1 and 111x x1, variant VFPv3), so the decoder gates it at VFPv3.
Advanced SIMD (NEON)
Advanced SIMD is decoded in A32 (condition 1111, bits 27:24 = 0010 or 0011 for data processing, 0100 for element and structure loads and stores) and in T32 (first halfword 111U 1111, and 1111 1001); the Thumb forms are mapped to the A32 word and decoded once. Bit 24 is the U bit, bit 6 is Q (a 128-bit operation: the registers are q0 to q15, each a pair of D registers, and an odd D number is undefined), bits 21:20 are the element size for most of the groups.
| Group | How it is told | Instructions |
|---|---|---|
| Three registers, same length | bit 23 = 0; bits 11:8 and bit 4 | vhadd, vqadd, vrhadd, vand, vbic, vorr, vorn, veor, vbsl, vbit, vbif (and vmov for vorr with equal sources, A32 only), vhsub, vqsub, vcgt, vcge, vshl, vqshl, vrshl, vqrshl (register shifts: the operands are Dd, Dm, Dn), vmax, vmin, vabd, vaba, vadd, vsub, vtst, vceq, vmla, vmls, vmul, vpmax, vpmin, vqdmulh, vqrdmulh, vpadd, vfma, vfms, the f32 forms vabd, vacge, vacgt, vrecps, vrsqrts, vmaxnm, vminnm; cryptography sha1c, sha1p, sha1m, sha1su0, sha256h, sha256h2, sha256su1 |
| One register and a modified immediate | bit 23 = 1, bit 4 = 1, bits 21:19 = 000 | vmov, vmvn, vorr, vbic with an 8-bit immediate expanded by cmode (bits 11:8) into 8, 16, 32 or 64 bits or an f32; the expanded value is written |
| Two registers and a shift | bit 23 = 1, bit 4 = 1, bits 21:19 ≠ 000 | vshr, vsra, vrshr, vrsra, vsri, vshl, vsli, vqshlu, vqshl, vshrn, vrshrn, vqshrn, vqrshrn, vqshrun, vqrshrun, vshll, vmovl, vcvt to and from fixed point; the size and the amount come from L:imm6 |
| Three registers, different lengths | bit 23 = 1, bit 4 = 0, bits 21:20 ≠ 11, bit 6 = 0 | vaddl, vaddw, vsubl, vsubw, vaddhn, vraddhn, vsubhn, vrsubhn, vabal, vabdl, vmlal, vmlsl, vmull (also .p8 and .p64), vqdmlal, vqdmlsl, vqdmull |
| Two registers and a scalar | as above with bit 6 = 1 | vmla, vmls, vmul, vmlal, vmlsl, vmull, vqdmlal, vqdmlsl, vqdmull, vqdmulh, vqrdmulh by a lane of a D register (d2[1]) |
| Two registers, miscellaneous | bits 21:20 = 11, bit 4 = 0, bits 19:18 size, 17:16 opc1, 10:7 opc2 | vrev64, vrev32, vrev16, vpaddl, vpadal, vcls, vclz, vcnt, vmvn, vqabs, vqneg, vcgt, vcge, vceq, vcle, vclt against zero, vabs, vneg, vswp, vtrn, vuzp, vzip, vmovn, vqmovn, vqmovun, vshll (maximum shift), vcvt f16 and f32, vrecpe, vrsqrte, vcvt between f32 and integers, vrintn, vrintx, vrinta, vrintz, vrintm, vrintp, vcvta, vcvtn, vcvtp, vcvtm; cryptography aese, aesd, aesmc, aesimc, sha1h, sha1su1 |
| Extract, table, duplicate | bits 21:20 = 11 with U = 0 (vext), or bits 11:8 = 10xx (vtbl, vtbx), or 1100 (vdup from a lane) | vext.8, written by LLVM as vext.16, vext.32 or vext.64 when the byte offset allows; vtbl.8 Dd, {Dn, …}, Dm with one to four registers; vdup.8/16/32 Dd, Dm[x] |
| Element and structure load and store | cond 1111, bits 27:24 = 0100 | vld1 to vld4 and vst1 to vst4: all lanes ({d0[]}), one lane ({d0[1]}) and whole registers; the address has an optional alignment ([r0:64]), then ! or a register for the post-index. Rm = 13 is writeback, Rm = 15 none. |
The Armv8.1 to Armv8.6 extensions
Added 2026-11-19 from the Arm AArch32 instruction XML (release 2026-09; Arm ARM DDI 0487M.d), in cpu/arm/ext.js. They are decoded at the v8a level (“all extensions”). In A32 they are in the unconditional space (condition 1111); in T32 they have the same bit pattern with the first halfword in bits 31:16, and the data-processing ones the Thumb halfword 111U 1111.
| Feature | Instructions (the syntax this decoder writes) |
|---|---|
| FEAT_RDM (Armv8.1) | vqrdmlah and vqrdmlsh on .s16 and .s32: three registers (bit 23 = 0, bit 4 = 1, bits 11:8 = 1011 and 1100, U = 1), and by a lane (d2[1]; for .s16 the register is D0 to D7 and the index is M:Vm[3]) |
| FEAT_DotProd (Armv8.2) | vsdot.s8 and vudot.u8, three registers (bits 11:8 = 1101, U selects unsigned) or by a lane of 4 bytes (d2[1], the register is D0 to D15) |
| FEAT_FCMA (Armv8.3) | vcmla.f16/.f32 with a rotation of 0, 90, 180 or 270 (three registers, or by a pair of elements), vcadd.f16/.f32 with a rotation of 90 or 270 |
| FEAT_FHM (Armv8.2) | vfmal.f16 and vfmsl.f16: half-precision products added to or subtracted from single-precision elements; D form d0, s1, s2, Q form q0, d1, d2, both also by a lane |
| FEAT_AA32I8MM (Armv8.6) | vusdot.s8, vsudot.u8 (by a lane), vsmmla.s8, vummla.u8, vusmmla.s8 (8-bit matrix multiply-accumulate on Q registers) |
| FEAT_AA32BF16 (Armv8.6) | vdot.bf16, vmmla.bf16, vfmab.bf16 and vfmat.bf16 (bottom and top elements; also by a lane) |
Also decoded since the same check: aese, aesd, aesmc and aesimc in full (the aese and aesmc forms, with bit 6 clear, were rejected before), the 64-bit forms of the shifts vshr, vsra, vrshr, vrsra, vsri, vshl, vsli, vqshl, vqshlu with a shift of 33 to 64 (L = 1 and imm6 below 8 was taken for a modified immediate), the narrowing shifts vrshrn, vqrshrn and vqrshrun (bit 6 is the rounding bit, not Q), setpan in A32, and dcps1 to dcps3 in T32.
Nothing the XML defines is left undecoded: the banked-register forms of mrs and msr are decoded for every register number in A32 and T32 (the numbers that the tables of DDI 0406C B9.2 call unallocated are shown as banked#n or spsr#n and marked unpredictable). The Armv8.2 half precision and the bf16 conversions are in the next section. test-arm-arm.mjs keeps the count of what the XML defines and we do not decode (0), and fails if it grows.
Half precision (FEAT_FP16) and bfloat16 conversions
Added 2026-11-19 from the Arm AArch32 instruction XML (release 2026-09; Arm ARM DDI 0487M.d), checked against llvm-mc with +fullfp16 and +bf16. The decoder has them at the v8a level and at ARMv8.1-M Mainline with a floating-point unit.
| Where | What the decoder shows |
|---|---|
| VFP data processing, coprocessor 9 (bits 11:8 = 1001) | The same encodings as the single-precision ones with the size field 01, registers numbered like single precision (Vd:D): vadd.f16, vsub, vmul, vnmul, vdiv, vmla, vmls, vnmla, vnmls, vfma, vfms, vfnma, vfnms, vabs, vneg, vsqrt, vcmp and vcmpe (also with #0), vrintr, vrintz, vrintx, vmov.f16 s0, #imm, vcvt between .f16 and .s32, .u32, .s16, .u16 (with fraction bits for the 16-bit and 32-bit fixed-point forms) and vcvtr. |
| The same, unconditional space (condition 1111) | vsel*.f16, vmaxnm.f16, vminnm.f16, vrinta, vrintn, vrintp, vrintm, vcvta, vcvtn, vcvtp, vcvtm with .f16, and vins.f16 and vmovx.f16 (coprocessor 10, bits 7:6 = 11 and 01). |
| Transfers and memory | vmov.f16 s0, r1 and vmov.f16 r1, s0 (cond 1110 000L Vn Rt 1001 N 001 0000); vldr.16 and vstr.16 with an offset of imm8 × 2. |
| Advanced SIMD | The floating-point groups take size bit 0 = 1 as half precision: vadd.f16, vsub, vmul, vmla, vmls, vfma, vfms, vabd, vpadd, vmax, vmin, vpmax, vpmin, vmaxnm, vminnm, vceq, vcge, vcgt, vacge, vacgt, vrecps, vrsqrts; by a lane vmla.f16, vmls, vmul; two registers vabs.f16, vneg, the compares against zero, vrecpe, vrsqrte, vrint*, vcvta/n/p/m.s16.f16, vcvt.f16.s16 and back, and the 16-bit fixed-point vcvt (imm6 = 11xxxx, so 1 to 16 fraction bits). |
| bfloat16 (FEAT_AA32BF16) | vcvt.bf16.f32 d0, q0 (Advanced SIMD, bit 6 set in the vcvt half-precision encoding) and vcvtb.bf16.f32, vcvtt.bf16.f32 (VFP, coprocessor 9, opc2 = 0011); together with vdot, vmmla, vfmab, vfmat above. |
With a condition other than AL (A32) or inside an IT block (T32) the half-precision VFP data-processing, move and memory instructions are CONSTRAINED UNPREDICTABLE (XML Decode of VADD (floating-point) A2/T2 and the others); the decoder shows them with that status. The two-register fixed-point conversions with 17 to 32 fraction bits in the 16-bit form (imm6 = 10xxxx) are UNDEFINED in the XML; LLVM decodes them, the test lists that as a known difference.
vlldm and vlstm (Armv8-M Main Extension, DDI 0553B.z C2.4.367 and C2.4.368): vlldm r0, {d0 - d15} and vlstm r0, {d0 - d15} are cond 1110 1100 0(0)1 L Rn with the second halfword 0000 1010 0(0)…; Armv8.1-M adds bit 7 of the second halfword and the mandatory list {d0 - d31}. Rn = PC is UNPREDICTABLE; the instructions are UNDEFINED in Non-secure state, which a disassembler cannot know.
The VFP system registers of vmrs and vmsr gained, at ARMv8.1-M: 2 fpscr_nzcvqc, 12 vpr, 13 p0, 14 fpcxtns and 15 fpcxts (DDI 0553B.z VMRS and VMSR); vldr and vstr of these registers (vldr p0, [r1], immediate offset × 4) and vscclrm are decoded there too.
Helium: the M-profile Vector Extension (MVE) and the low-overhead branches
Added 2026-11-19 in cpu/arm/mve.js from the encoding diagrams of the Armv8-M Architecture Reference Manual DDI 0553B.z (chapter C2), checked against llvm-objdump with +mve.fp by scripts/arm/mve-compare.mjs (the encodings in the manual and a million random Thumb words). It is a decoder option of the ARMv8.1-M Mainline level: the mve option (the Helium checkbox of the Cortex-M viewer, and the “Helium (MVE)” choice of the ELF viewer, which reads Tag_MVE_arch of .ARM.attributes: 1 integer only, 2 integer and floating point). The vector registers are q0 to q7; the bit that would make a register number 8 to 15 must be zero or the word is UNDEFINED.
| Family | Instructions (the syntax written by the decoder) |
|---|---|
| Integer arithmetic, vector or vector and general-purpose register | vadd.i8 and .i16, .i32, vsub, vmul, vabd.s8/.u8, vhadd, vhsub, vrhadd, vqadd, vqsub, vmax, vmin, vmaxa, vmina, vmulh, vrmulh, vmullb/vmullt (also .p8, .p16), vqdmulh, vqrdmulh, vqdmullb/vqdmullt, vqdmladh, vqrdmladh, vqdmlsdh, vqrdmlsdh (with the exchange x), vmla, vmlas, vqdmlah, vqrdmlah, vqdmlash, vqrdmlash, vbrsr, vadc, vsbc (with i), vcadd, vhcadd, vabs, vneg, vqabs, vqneg, vcls, vclz, vrev16, vrev32, vrev64, vidup, vddup, viwdup, vdwdup |
Floating point (.f16 or .f32) | vadd, vsub, vmul, vabd, vfma, vfms, vfmas, vmaxnm, vminnm, vmaxnma, vminnma, vabs, vneg, vcmla and vcadd and vcmul with a rotation, vcvt (integer, fixed point, vcvta/n/p/m, vcvtb/vcvtt between f16 and f32), vrinta/n/p/m/x/z |
| Logic and immediates | vand, vbic, vorr (written vmov q0, q1 for equal sources), vorn, veor, vmvn, vpsel, and with a modified immediate vmov.i8/.i16/.i32/.i64/.f32, vmvn, vorr, vbic |
| Shifts and narrowing | vshl, vshr, vrshr, vsli, vsri, vqshl, vqshlu by an immediate (imm6 gives the element size and the amount); by a vector (vshl.s8 q0, q1, q2, the amounts in the last operand) or by a general-purpose register (vshl.s16 q0, r1), vrshl, vqrshl; vshllb/vshllt, vmovlb/vmovlt, vmovnb/vmovnt, vshrnb/vshrnt, vrshrn, vqshrn, vqrshrn, vqshrun, vqrshrun, vqmovn, vqmovun, vshlc |
| Reductions into general-purpose registers | vaddv, vaddlv, vmaxv, vminv, vmaxav, vminav, vmaxnmv, vminnmv, vmaxnmav, vminnmav, vabav, vmladav (written vmlav without the accumulate and exchange flags), vmlsdav, vmlaldav (vmlalv), vmlsldav, vrmlaldavh (vrmlalvh), vrmlsldavh; an a in the name accumulates, an x exchanges |
| Predication | vpt.i8 eq, q0, q1, vpt.u8 cs/hi, vpt.s8 ge/lt/gt/le, vpt.f32 eq/ne/ge/lt/gt/le with a vector or a general-purpose register (register 15 is written zr), vpst, vpnot, vcmp (the same forms), vctp.8 to .64. The mask of VPT and VPST (4 bits) gives the instructions of the block: vptt, vpte, vpttt … up to four instructions; the first is always “then”, then the predicate toggles for each mask bit that is 1. Inside a block the layout writes t or e after the name (vaddt.i32), the way llvm-objdump does; the state travels like the IT state, from the VPT back up to 16 bytes. |
| Lanes and moves | vmov.32 q0[1], r0 and vmov.u8 r0, q0[3] (.s8, .u8, .s16, .u16, .32), vmov r0, r1, q0[2], q0[0] and the reverse, vdup.8/.16/.32 q0, r0 |
| Loads and stores | Contiguous vldrb.u8, vldrh.u16, vldrw.u32 and vstrb.8, vstrh.16, vstrw.32 with an offset of imm7 times the element size, offset, pre-indexed (!) or post-indexed; widening and narrowing vldrb.s16, .u16, .s32, .u32, vldrh.s32, .u32 and vstrb.16, .32, vstrh.32 (base register R0 to R7); gather and scatter vldrw.u32 q0, [r1, q2, uxtw #2], vldrd.u64, vstrb.8 q0, [r1, q2]; vector of addresses vldrw.u32 q0, [q1, #4]!, vldrd.u64; interleaved vld20 to vld43 and vst20 to vst43 with a register list of 2 or 4 |
| Scalar shifts on general-purpose registers | asrl, lsll, lsrl (immediate or register), sqshll, srshrl, uqshll, urshrl, sqrshrl, uqrshll on a pair, sqshl, srshr, uqshl, urshr, sqrshr, uqrshl on one register (they share the space of the Thumb orr with a shifted register; the encoding with the pair register field 111 is the one-register form) |
| Low-overhead loops (the Low Overhead Branch Extension) | dls lr, r0, wls lr, r0, target, le lr, target and le target, dlstp.8 to .64, wlstp, letp, lctp; the offset is (imm10 × 4) + (imm1 × 2), added to the PC for wls and wlstp, subtracted for the le forms. clrm {r0, r1, apsr} clears registers. |
The other ARMv8.1-M additions are on the Thumb page: Branch Future (bf, bfl, bfx, bflx, bfcsel), PACBTI (pac, aut, bti, pacg and the PAC_KEY registers) and the Custom Datapath Extension (vcx1 to vcx3, cx1 to cx3, with the Q register forms of vcx predicated like the Helium instructions). vpush and vpop of Q registers are the ordinary vstmdb and vldmia. llvm refuses coprocessors 8, 9, 14 and 15 with MVE; the manual (DDI 0553B.z, CDP: “if coproc IN {'100x', '101x', '111x'} then SEE Floating-point and MVE”) says the generic coprocessor instructions do not exist for 8 to 11, 14 and 15 at any Armv8-M level, which is what the decoder does.