Introduction
A64 is the instruction set of AArch64, the 64-bit execution state that Arm introduced with Armv8-A. ARM64 is its everyday name.
Every A64 instruction is one 32-bit word, and instructions are always stored little-endian. There are no shorter or longer forms, so code can be read from any multiple of four bytes. Data can also be big-endian on a processor that supports it, but almost every system uses little-endian data too.
There are 31 general registers, x0 to x30, each 64 bits wide.
w0 to w30 are their low 32 bits. Register number 31 is not a
32nd general register: depending on the instruction, it means the stack pointer,
sp, or the zero register, xzr or wzr, which reads
as zero and ignores writes. The program counter is not a general register.
Four condition flags, N, Z, C and V, record the result of a comparison or a calculation.
Most arithmetic leaves them alone. Only the forms that say so set them, such as
adds, subs and ands. Conditional branches and
conditional selects read them. The Registers
page describes all of these, with the floating-point, SIMD, SVE and SME registers.
Fileformats.org’s explorer disassembles the ARM64 code in Mach-O programs and in COFF object files, with its text in the form that LLVM prints.
How this reference is organised
Two pages explain how instructions are put together. The other pages each cover one group of instructions. A group page has one table for each kind of instruction, with the mnemonic, its syntax as the disassembler prints it, what it does and which flags it sets. The explorer links each instruction it shows to its row.
- Instruction encoding – how a 32-bit word divides into groups and fields, the immediates, PC-relative targets and conditions
- Registers – the general, flag, floating-point, SIMD, SVE and SME registers
- Integer data processing – arithmetic, logic, shifts, bitfields, multiplication, division and conditional selection
- Branches and exceptions – branches, calls and returns, and the instructions that raise and return from exceptions
- Loads and stores – single and paired loads and stores, load-acquire and store-release, exclusive access and prefetch
- Atomic and exclusive access – compare and swap, swap, atomic read-modify-write, and 64-byte loads and stores
- Pointer authentication – signing, checking and stripping pointers
- Memory tagging – setting and checking the tags on addresses and memory
- Memory copy and set – the instruction sequences that copy and fill memory
- System instructions – system registers, barriers, hints, cache operations and the guarded control stack
- Floating point – scalar floating-point arithmetic, comparison and conversion
- Advanced SIMD (NEON) – integer and floating-point operations on the 64-bit and 128-bit vector registers
- Advanced SIMD loads and stores – loading and storing vectors, single elements and interleaved structures
- Cryptography – AES, SHA-1, SHA-2, SHA-3, SM3 and SM4
- SVE – the Scalable Vector Extension, with its scalable vectors and predicates
- SVE2 and later – the instructions SVE2 and its later versions add
- SME – the Scalable Matrix Extension and its two-dimensional ZA storage
- SME2 and later – the instructions SME2 and its later versions add
Status of an instruction
Each decoded A64 instruction carries a status and, when it is not the ordinary one, an issue sentence, in the words of the status list the other decoders on this site use.
| Status | Meaning here |
|---|---|
documented | A defined encoding. Almost every word that decodes. |
deprecated | The instruction was defined and then withdrawn by Arm: the four FEAT_TME instructions tstart, tcommit, ttest and tcancel (Arm Known Issue D24093; LLVM commit #167687 removed its assembler support; GNU binutils 2.47 marks the same four instructions as deprecated). See the system instructions. |
unpredictable | The word decodes, but the Arm ARM calls its behaviour constrained unpredictable (Arm ARM DDI 0487M.d section K1.2.2 for should-be-zero and should-be-one bits, section K1.2.17 for register overlaps). Any of these bits, in 62 encodings (the load/store exclusive and acquire/release family including the FEAT_LSUI forms, ldapr, smulh/umulh, addg/subg with op3 not 00, fcmp/fcmpe with zero and a non-zero Rm, cfinv, xaflag, axflag and sb with CRm not 0): the field is not as it should be. Overlaps: a pair load with Rt = Rt2 (general, SIMD and unprivileged pairs, ldnp, ldxp, ldiapp); writeback of a base register that is also a transfer register (ldp, ldpsw, stp but not stgp, ldiapp, stilp, ldapr and stlr with writeback, ldraa/ldrab pre-indexed, single ldr/str forms with immediate writeback); a store-exclusive status register equal to a register stored or to the base; the 128-bit atomics with the two registers equal; and cpy*/set* with overlapping registers or register 31. A base register 31 is the stack pointer and is never flagged. The architecture lets an implementation make these words undefined, a no-operation or give an unknown result; this decoder always shows what the bits mean. |
undefined | Not an instruction (shown as .inst), or the code is cut short. |
How the classes were checked: since 2026-11-19 the rules come from the Arm Architecture Reference Manual (DDI 0487M.d) and the Arm A64 instruction XML (release 2026-09) that goes with it, not from LLVM. A script reads every encoding of the XML (4,295), builds words from it, runs the decode pseudocode of each encoding (undefined conditions, constrained-unpredictable conditions, should-be bits) and compares the result with this decoder: 3,073,126 words, no difference in whether a word is an instruction, in its mnemonic, or in its status class (scripts/arm/xml-a64-compare.mjs, parser-test/test-arm64-arm.mjs). LLVM warns about fewer words than the Arm ARM does (it accepts stxr with Rt2 not all ones, for example) and about one class the Arm ARM does not list: stgp with writeback and the base equal to a transfer register, which this decoder leaves documented. Where the Arm ARM says a field is fixed rather than should-be-one, the other values are not allocated: cast and caspt with Rt2 not 11111 are not instructions here (LLVM soft-fails them). Conditions that depend on the machine at run time (debug state for wfet, the stack pointer for some SME loads) are not properties of a word and are not flagged.
Not described
Known, not yet covered
- Reference and viewer: the explorer’s disassembly view (Mach-O, ELF, object and boot-image code) draws the status: a highlight, a tag, a legend entry and the reason in the detail panel. Not browser-checked in this round.
- Reference: decided from the Arm ARM (DDI 0487M.d and the 2026-09 ISA XML): the memory copy and set instructions with register 31, the 128-bit register moves
mrrs/msrr(FEAT_SYSREG128) and the FEAT_PAuth_LR instructions are all defined, so they decode; GNU binutils 2.47 rejects them, which is a limit of GNU. Words in the system-register move space with bit 20 clear (what an earlier reading showed asmsr S0_…) are not register moves: they arehinte(FEAT_HINTE) or not allocated. - Reference: instructions this decoder knows from newer sources (GNU binutils 2.47, LLVM 22) that are not in the Arm ISA XML 2026-09:
ldap/ldapp/stlp(FEAT_LSCP),lda64b/stl64b/stl64bv/stl64bv0(FEAT_LSC64B),tchangef/tchangeb/tenter/texit,setgo*,shuh/stcph,gic/plbisystem operations, and SVE/SME forms such asluti6,addqp,addsubp,subp, the 16-bitsdot/udot,fdot,fmmla,bfmmlaandsabal/uabalon vectors, and the narrowing shifts from pairs of vectors. They are not checked against the Arm ARM. - Reference: bit-layout diagrams for each instruction family. The group pages give syntax, meaning and flags; only the encoding page draws the layout, for the top-level groups and the shared fields. Arm’s instruction XML has every layout.
- Reference: the exact operation of each instruction (Arm’s pseudocode), its exceptions and its behaviour under each feature. The pages describe these in a sentence. Names, feature names, operand forms and the system-instruction operation tables were checked against Arm’s XML (release 2026-09); the explanations were not compared word for word.
- Reference: the fields of each system register. The disassembler
names about 1,650 registers. The names were compared with Arm’s system register XML
(release 2026-09): 2,038 read and write encodings agree, the XML’s numbered
registers
TRCEXTINSELR0and the like differ only in the numbering suffix, and the others in the XML are implementation-defined ranges or entries that its own array bounds exclude. The register tables give the name and number but not the layout of the fields. - Reference:
plbi,mlbi,tchangef,tchangeb,tenter,texit, thesetgofamily and the newest system register names come from LLVM 22 and are not in the XML release that was checked. The pages give their names and operand forms but not what they do. - Viewer: a few SME2 groups that are written once for several element sizes show one feature label for all sizes; the feature that a double-precision or 16-bit-to-64-bit size needs is shown only where the row is split.
Unknown
- Viewer: Apple’s AMX matrix instructions and other Apple-only
extensions are undocumented and not decoded; they show as
.inst. LLVM does not decode them either. - Viewer: the transactional memory instructions (
tstart,tcommit,ttest,tcancel) are not in the current Arm description and are no longer decoded.
Links
Reference
- Arm A64 Instruction Set Architecture – Arm’s description of each A64 instruction
- Arm Architecture Reference Manual for A-profile – the full architecture specification