Introduction
This page covers the instructions that control the processor rather than calculate values. Many are privileged and are undefined at EL0, the level where programs run, unless a control register allows them.
A hint is an encoding in a reserved space that does nothing on a
processor that does not know it. That lets new features, such as branch target
identification and pointer authentication of return addresses, be added to software
that still runs on older hardware. Encodings with no name print as
hint #imm.
Most of these instructions leave the condition flags alone. The exceptions are
the flag instructions, msr when it writes nzcv, and the
cases noted in the tables.
The instructions
General hints
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
nop | nop | Does nothing. | – |
hint | hint #imm | A hint with no assigned name. It runs as a no-operation. | – |
hinte | hinte #imm16 | Extended hint (FEAT_HINTE): a 16-bit immediate in the space reserved for future hints; it does nothing now. The immediate is made of bit 21, bits 18 to 16, bits 11 to 5 and the register field, and the values that are the barrier encodings (0x301f to 0x3fff in steps of 32) are excluded. Source: Arm ISA XML 2026-09 (HINTE), Arm ARM DDI 0487M.d. Before this reading, such words were shown as msr or mrs with a made-up register name. | – |
yield | yield | Tells the processor that this thread can give way, as in a spin loop. | – |
wfe | wfe | Wait for event: may enter a low-power state until a wakeup event. | – |
wfi | wfi | Wait for interrupt: may enter a low-power state until an interrupt or other wakeup event. | – |
sev | sev | Sends an event to all processors in the system, waking any in wfe. | – |
sevl | sevl | Sends an event locally, to this processor only. | – |
dgh | dgh | Data gathering hint: accesses before it should not be merged with those after it into one bus transaction. | – |
stshh | stshh keep; stshh strm | Store shared hint (FEAT_PCDPHINT): says that the next write goes to a location that other threads will observe, so it should reach them with little delay. The policy is keep (the writer’s cache should keep the line) or strm (it should not). | – |
shuh | shuh; shuh ph | Shared update hint (FEAT_CMH): says that the next memory access goes to a location other threads are likely to update soon, so that their updates should complete with little delay. It may make this thread’s own later accesses to the location slower. With ph (priority hint) it also gives the hint of stcph. | – |
stcph | stcph | Store concurrent priority hint (FEAT_CMH): says that ordering the next write, or the read half of an atomic, ahead of other threads’ accesses to the same location is worth some performance. | – |
wfet, wfit | wfet Xt | The same as wfe and wfi, with a timeout read from Xt. | – |
Branch target and feature hints
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
bti, bti c, bti j, bti jc | bti; bti c; bti j; bti jc | Branch target identification. Marks a landing place for indirect branches in a guarded memory region: c for calls, j for jumps, and jc for both. Outside a guarded region it is a no-operation. | – |
chkfeat x16 | chkfeat x16 | Checks the status of features and reports the result in x16. Without the feature it is a no-operation. | – |
pacm | pacm | Sets PSTATE.PACM to 1, so that some of the following return-address instructions take a second modifier. Without FEAT_PAuth_LR it is a no-operation. | – |
Pointer authentication hints
These work with fixed registers and need no operands. See the
Pointer authentication
page for the keys and the method. a or b in the name is
the key.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
paciasp, pacibsp | paciasp | Signs x30, with sp as the modifier. These have an implicit bti. | – |
autiasp, autibsp | autiasp | Authenticates x30 with sp as the modifier. | – |
paciaz, pacibz | paciaz | Signs x30 with a modifier of zero. | – |
autiaz, autibz | autiaz | Authenticates x30 with a modifier of zero. | – |
pacia1716, pacib1716 | pacia1716 | Signs x17 with x16 as the modifier. | – |
autia1716, autib1716 | autia1716 | Authenticates x17 with x16 as the modifier. | – |
xpaclri | xpaclri | Removes the authentication code from x30 without checking it. | – |
Barriers
dmb and dsb take an option that says what to order and
which processors it affects: sy for the full system,
ish for the inner shareable domain, nsh for this processor
only, and osh for the outer shareable domain. A ld or
st suffix limits it to loads or stores, as in ishld and
ishst. dmb ld and dmb st mean the full system
with that limit.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
dmb | dmb ish | Data memory barrier: orders accesses before it against accesses after it. | – |
dsb | dsb ish; dsb ishnxs | Data synchronisation barrier: waits until earlier accesses have completed. The nxs forms, from FEAT_XS, do not wait for accesses to memory with the XS attribute. | – |
isb | isb | Instruction synchronisation barrier: flushes the pipeline, so later instructions see the effect of earlier context changes. | – |
sb | sb | Speculation barrier: limits speculative execution past this point. | – |
ssbb | ssbb | Prevents a load that runs speculatively from passing an earlier store when both use the same virtual address. | – |
pssbb | pssbb | The same for the same physical address. | – |
csdb | csdb | Consumption of speculative data barrier: limits speculation that uses predicted data values or flags. | – |
esb | esb | Error synchronisation barrier, for the RAS extensions. | – |
psb csync | psb csync | Profiling synchronisation barrier, for the Statistical Profiling Extension. | – |
tsb csync | tsb csync | Trace synchronisation barrier. | – |
gcsb dsync | gcsb dsync | Guarded control stack barrier. It orders accesses to the guarded control stack. | – |
clrbhb | clrbhb | Clears the branch history, as a defence against attacks on branch prediction. | – |
dfb | dfb | The name LLVM gives to the barrier encoding that is otherwise dsb #12 when the Armv8-R architecture is selected. | – |
clrex | clrex; clrex #imm | Clears the local exclusive monitor, so the next store-exclusive fails. The immediate is ignored. | – |
Flags
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
cfinv | cfinv | Inverts the carry flag. | C |
axflag | axflag | Converts the flags from an Arm floating-point compare to the form that some other software expects. | NZCV |
xaflag | xaflag | Converts the flags back to the Arm floating-point compare form. | NZCV |
System registers
System registers configure the processor and report its state. A register is named
by five numbers, written Sop0_op1_CCRn_CCRm_op2
when no name is known: for example S3_0_C0_C0_0. Each has its own rules
about which exception level can read or write it. Reading or writing one that is not
permitted is undefined or traps to a higher level.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
mrs | mrs Xt, sysreg | Reads a system register into Xt. | – |
msr | msr sysreg, Xt; msr pstatefield, #imm | Writes a system register. The immediate form writes a PSTATE field: DAIFSet, DAIFClr, SPSel, UAO, PAN, SSBS, DIT, TCO, ALLINT or PM. | NZCV if the register written is nzcv, otherwise – |
mrrs, msrr | mrrs Xt, Xt+1, sysreg; msrr sysreg, Xt, Xt+1 | Reads or writes a 128-bit system register using two adjacent general-purpose registers. Xt is even. | – |
System instructions and their aliases
sys, sysl and sysp are the general forms.
The names below are aliases of them for particular operations, and the disassembler
prints the name when it knows the operation.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
sys | sys #op1, Cn, Cm, #op2, Xt | A system instruction with an optional input register. | – |
sysl | sysl Xt, #op1, Cn, Cm, #op2 | A system instruction that returns a value. | – |
sysp | sysp #op1, Cn, Cm, #op2, Xt, Xt+1 | A 128-bit system instruction with a pair of registers. | – |
at | at s1e1r, Xt | Address translate: translates the address in Xt and writes the result to PAR_EL1. | – |
dc | dc civac, Xt | Data cache operation on the address in Xt, or on a set and way. | – |
ic | ic ivau, Xt; ic iallu | Instruction cache operation. | – |
tlbi | tlbi vae1is, Xt; tlbi vmalle1 | Invalidates entries in the translation lookaside buffers. | – |
tlbip | tlbip vae1is, Xt, Xt+1 | TLB invalidate with a 128-bit operand in a pair of registers. | – |
brb | brb iall; brb inj | Branch record buffer operations: invalidates all the records, or injects a record. | – |
cfp, dvp, cpp, cosp | cfp rctx, Xt | Restrict speculation by context. They limit control flow prediction, data value prediction, cache prefetch prediction and other predictions, based on what code in the context named by Xt did earlier. | – |
gic, gicr, gsb | gic cden, Xt; gicr Xt, cdia; gsb sys; gsb ack | Operations on the generic interrupt controller’s CPU interface (FEAT_GCIE). gic takes a register and an operation such as cddis, cden, cdpri, cdaff, cdpend, cdrcfg, cddi or cdhm (and cdeoi, with no register); the vd and ld prefixes act on virtual and logical interrupts. gicr reads the result of cdia or cdnmia. gsb is a synchronisation barrier for these operations, in the forms sys and ack. | – |
plbi, mlbi | plbi vmalle1is; plbi perme1, Xt; mlbi vpide1, Xt | Invalidation of permission lookaside buffer and memory-attribute lookaside buffer entries. They follow the pattern of tlbi: os, is and nxs suffixes, vmalle1 and alle1 to alle3 for everything at a level, and perme1 to perme3, permae1 and aside1 for single entries. mlbi has alle1, vmalle1, vpide1 and vpmge1. These come from the newest LLVM; they are not in the Arm instruction XML I checked against, so the operation names are LLVM’s. | – |
apas | apas Xt | Ties a memory-mapped location to a physical address space, as the Realm Management Extension needs. | – |
trcit | trcit Xt | Writes an instrumentation trace packet holding the value in Xt. | – |
The names of the operations follow a pattern:
- AT.
s1e1rtranslates through stage 1 at EL1 as a read ands1e1was a write.e0,e1,e2ande3are the exception levels used for the translation, ands12means stages 1 and 2.rpandwpalso take PSTATE.PAN into account. - DC.
iinvalidates,ccleans andcidoes both.vaworks by virtual address andswby set and way. The point of the clean follows:cvacto the point of coherency,cvauto the point of unification,cvapto the point of persistence, andcvadpto the point of deep persistence.zvazeroes a block of memory. The forms withg, such ascgvacandgva, also work on Allocation Tags, and those withgdwork on tags and data.gzvawrites tags and zeroes data.gbvaandzgbva(FEAT_MTETC) are two more operations on tagged memory, named in Arm’s operation table without a description in the XML. Other operations go to the point of outer cache (cvaoc,civaoc) or act on physical addresses (cipae,cipapa). - IC.
ialluinvalidates all instruction caches to the point of unification,ialluisdoes so across the inner shareable domain, andivauinvalidates by virtual address. - TLBI.
vmalle1invalidates all stage 1 entries for the current virtual machine at EL1, andvmalls12e1stages 1 and 2.vae1works by virtual address andaside1by ASID.vaae1ignores the ASID.vale1andvaale1affect only last-level entries.alle1,alle2andalle3invalidate everything at a level.ipas2e1works by intermediate physical address.paall,rpaosandrpalosare for Realm Management and act on physical address information.vmallws2e1is a further stage 2 operation. Anrprefix (rvae1) means a range of addresses. A suffixisbroadcasts to the inner shareable domain,osto the outer shareable domain, andnxsgives the form that does not wait for XS memory accesses.
Guarded control stack
A guarded control stack is a separate stack for return addresses, protected by the hardware. FEAT_GCS adds these instructions. The current pointer is in the register GCSPR_ELx.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
gcspushm | gcspushm Xt | Pushes the return record in Xt onto the current guarded control stack: it decrements the GCS pointer by the size of a record and stores the entry. | – |
gcspopm | gcspopm; gcspopm Xt | Pops a return record from the current guarded control stack into Xt: it loads the doubleword the GCS pointer addresses and then increments the pointer. | – |
gcsss1, gcsss2 | gcsss1 Xt; gcsss2 Xt | The two steps of switching to another stack. gcsss1 checks the new stack and makes it current. gcsss2 finishes the switch and returns the old pointer. | – |
gcsstr, gcssttr | gcsstr Xt, [Xn] | Stores a doubleword as a guarded control stack access. gcssttr is the unprivileged form. | – |
gcspushx, gcspopx, gcspopcx | gcspushx | Push or pop an exception return record. gcspopcx also compares the record with the current exception return state. | – |
Streaming mode and newer transaction instructions
smstart and smstop are the SME controls. The Transactional
Memory Extension (FEAT_TME: tstart, tcommit, ttest and
tcancel) was withdrawn by Arm and is no longer part of
Arm’s instruction set description (Arm Known Issue D24093; LLVM removed its assembler support in
commit #167687). The disassembler still names the four opcodes, with the status
deprecated, because code written while
the extension existed contains them; the encodings are those of GNU binutils 2.47 (opcodes/aarch64-tbl.h),
which marks the same four instructions as deprecated. They are listed in the table
below. What the four did is written from memory of the extension’s original description (the current Arm XML no longer has it); the encodings (checked against GNU objdump
for every register and all 65,536 tcancel immediates) and the withdrawal are sourced. Whether any processor ever implemented them is not something these pages know.
| Mnemonic | Syntax | What it does | Flags |
|---|---|---|---|
tchangef, tchangeb | tchangef Xd, Xm; tchangef Xd, #imm; tchangeb Xd, Xm, nb | Newer instructions that are not in the Arm instruction XML checked for this reference (release 2026-09). The names and operand forms are those of LLVM 22: a destination register, a register or a 7-bit immediate, and an optional nb flag. What they do is not described here. | – |
tenter, texit | tenter #imm; tenter #imm, nb; texit; texit nb | From the same source and group as tchangef: tenter takes a 7-bit immediate and texit takes none. Only the names and operand forms are known here. | – |
tstart | tstart Xt | Starts a transaction (FEAT_TME, withdrawn). As described when the extension existed, Xt receives zero when the transaction starts and a failure code when it falls back. Encoding 0xD5233060 + Rt. | – |
tcommit | tcommit | Commits the current transaction (FEAT_TME, withdrawn). Encoding 0xD503307F. | – |
ttest | ttest Xt | Writes the transaction nesting depth to Xt: zero outside a transaction (FEAT_TME, withdrawn). Encoding 0xD5233160 + Rt. | – |
tcancel | tcancel #imm | Aborts the current transaction with a 16-bit immediate as the reason (FEAT_TME, withdrawn). Encoding 0xD4600000 with the immediate in bits 5 to 20. | – |
smstart, smstop | smstart; smstart sm; smstart za | Enter or leave Streaming SVE mode with sm, enable or disable the ZA storage with za, or do both with no operand. | – |
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