ARM Instructions
1,361 instructions - showing 100 per page, page 3 of 14 - click any row to view encoding, pseudocode, and full documentation.
How ARM compares to the other CPU architectures
Decode a ARM instruction word
Download this data (public domain)
| Mnemonic | Syntax | Format | Extension | Summary |
|---|---|---|---|---|
| compact | COMPACT <Zd>.<T>, <Pg>, <Zn>.<T> | SVE Permute | SVE | Packs active elements to the bottom of the vector. |
| cosp | COSP RCTX, <Xt> | System | FEAT_CSV3 (Speculation) | Prevents speculation from determining that the instruction is executed. |
| cpp | CPP RCTX, <Xt> | System | FEAT_CPP | Prevents cache prefetch prediction past this instruction. |
| cps | CPS<effect> <iflags> {, #<mode>} | System | A32 (System) | Changes the processor mode or interrupt masks. |
| cps | CPS<effect> <iflags> {, #<mode>} | Thumb System | T32 (System) | Change mode/state (Thumb). |
| cpy | CPY <Zd>.<T>, <Pg>/M, <R><n> | SVE Move | SVE | Copies scalar value to active vector elements (Alias for DUP predicated). |
| cpy | CPY <Zd>.<T>, <Pg>/M, <V><n> | SVE Move | SVE | Copies a SIMD&FP scalar register into the active elements of a vector, leaving the rest. |
| cpye | CPYE [<Xd>]!, [<Xs>]!, <Xn>! | FEAT_MOPS | FEAT_MOPS | Memory Copy Epilogue. |
| cpyfe | CPYFE [<Xd>]!, [<Xs>]!, <Xn>! | MOPS | FEAT_MOPS | Final step of a hardware-accelerated memcpy (Forward direction). |
| cpyfm | CPYFM [<Xd>]!, [<Xs>]!, <Xn>! | MOPS | FEAT_MOPS | Main loop of a hardware-accelerated memcpy (Forward direction). |
| cpyfp | CPYFP [<Xd>]!, [<Xs>]!, <Xn>! | MOPS | FEAT_MOPS | First step of a hardware-accelerated memcpy (Forward direction). |
| cpym | CPYM [<Xd>]!, [<Xs>]!, <Xn>! | FEAT_MOPS | FEAT_MOPS | Memory Copy Main. |
| cpyp | CPYP [<Xd>]!, [<Xs>]!, <Xn>! | FEAT_MOPS | FEAT_MOPS | Memory Copy Prologue. |
| crc32b | CRC32B<c> <Rd>, <Rn>, <Rm> | Data Proc | CRC | CRC32 checksum update (Byte). |
| crc32b | CRC32B <Wd>, <Wn>, <Wm> | Data Processing | CRC | Updates CRC32 checksum with a byte. |
| crc32cb | CRC32CB <Wd>, <Wn>, <Wm> | Data Processing | CRC | Updates CRC32C (Castagnoli) checksum with a byte. |
| crc32w | CRC32W<c> <Rd>, <Rn>, <Rm> | Data Proc | CRC | CRC32 checksum update (Word). |
| crc32w | CRC32W <Wd>, <Wn>, <Wm> | Data Processing | CRC | Updates CRC32 checksum with a word. |
| crc32x | CRC32X <Wd>, <Wn>, <Xm> | Data Processing | CRC | Updates CRC32 checksum with a doubleword (64-bit). |
| csdb | CSDB | System Hint | A32 (v8.0) | Prevents speculative data consumption (v8.0). |
| csdb | CSDB | System Hint | Base | Prevents speculative data consumption. |
| csel | CSEL <Wd>, <Wn>, <Wm>, <cond> | Cond Select | Base | Selects between two registers based on condition. |
| cset | CSET <Wd>, <cond> | Cond Select | Base | Sets register to 1 if condition true, else 0. (Alias for CSINC) |
| csinc | CSINC <Wd>, <Wn>, <Wm>, <cond> | Cond Select | Base | Selects Wn if cond true, else (Wm + 1). (CINC is its alias) |
| csinv | CSINV <Wd>, <Wn>, <Wm>, <cond> | Cond Select | Base | Selects Wn if cond true, else NOT Wm. (CINV is its alias) |
| csneg | CSNEG <Wd>, <Wn>, <Wm>, <cond> | Cond Select | Base | Selects Wn if cond true, else -Wm. (CNEG is its alias) |
| ctz | CTZ <Wd>, <Wn> | CSSC | CSSC | Count Trailing Zeros. |
| dbg | DBG #<option> | System Hint | A32 (Base) | Provides a hint to the debug system. |
| dbg | DBG #<option> | Thumb System | T32 (Base) | Debug hint (Thumb). |
| dc | DC <op>, <Xt> | System Alias | System | Performs data cache maintenance (Clean, Invalidate, Flush). (Alias for SYS) |
| dcps1 | DCPS1 | System | A32 (System) | Switches execution to EL1 (Debug). |
| dcps1 | DCPS1 {#<imm>} | Exception | System | Switch to Exception Level 1 (Debug). |
| dcps2 | DCPS2 | System | A32 (System) | Switches execution to EL2 (Debug). |
| dcps2 | DCPS2 {#<imm>} | Exception | System | Switch to Exception Level 2 (Debug). |
| dcps3 | DCPS3 | System | A32 (System) | Switches execution to EL3 (Debug). |
| dcps3 | DCPS3 {#<imm>} | Exception | System | Switch to Exception Level 3 (Debug). |
| decb | DECB <Xdn>, <pattern> {, MUL #<imm>} | SVE Inc/Dec | SVE | Decrements a register by the number of active bytes. |
| decd | DECD <Xdn>, <pattern> {, MUL #<imm>} | SVE Inc/Dec | SVE | Decrements a register by the number of active doublewords. |
| decw | DECW <Xdn>, <pattern> {, MUL #<imm>} | SVE Inc/Dec | SVE | Decrements a register by the number of active words. |
| dfb | DFB | System Hint | A32 (Legacy) | Deprecated alias for DSB. |
| dgh | DGH | System Hint | Base | Hints that multiple memory accesses should be merged. |
| dmb | DMB <option> | System | Base | Ensures memory access ordering. |
| dmb | DMB <option> | Thumb System | A32 (Base) | Memory barrier (Thumb). |
| dmb | DMB <option> | System | A32 (Base) | Ensures memory access ordering. |
| drps | DRPS | System | System | Restores state from SPSR_ELx and DLR_EL0. |
| dsb | DSB <option> | System | Base | Ensures completion of memory accesses. |
| dsb | DSB <option> | Thumb System | A32 (Base) | Sync barrier (Thumb). |
| dsb | DSB <option> | System | A32 (Base) | Ensures completion of memory accesses. |
| dup | DUP <Vd>.<T>, <R><n> | SIMD Copy | NEON (SIMD) | Duplicates a general-purpose register to all vector elements. |
| dup | DUP <Vd>.<T>, <Vn>.<Ts>[<index>] | SIMD Copy | NEON (SIMD) | Duplicates a vector element to all elements in destination. |
| dup | DUP <Zd>.<T>, <R><n|m> | SVE Move | SVE | Broadcasts a scalar register or immediate to all active vector elements. |
| eon | EON <Wd>, <Wn>, <Wm> {, <shift> #<amount>} | Logical (Register) | Base | XORs register with NOT of shifted register (XNOR). |
| eon | EON <Xd>, <Xn>, <Xm> {, <shift> #<amount>} | Logical (Register) | Base | XORs 64-bit register with NOT of shifted register. |
| eor | EOR <Wd|Wsp>, <Wn>, #<imm> | Logical (Immediate) | Base | XORs register with immediate. |
| eor | EOR <Wd>, <Wn>, <Wm> {, <shift> #<amount>} | Logical (Register) | Base | XORs two registers. |
| eor | EOR <Vd>.<T>, <Vn>.<T>, <Vm>.<T> | SIMD Three Register | NEON (SIMD) | Bitwise XOR of two vectors. |
| eor | EOR <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T> | SVE Logic | SVE | Bitwise XOR of two vectors under predicate. |
| eor | EOR{S}<c> <Rd>, <Rn>, <Rm> {, <shift>} | Data Proc | A32 (Base) | Performs bitwise XOR. |
| eor.w | EOR.W <Rd>, <Rn>, <Operand2> | Thumb2 Data Proc | T32 (Thumb2) | Thumb-2 32-bit XOR. |
| eor3 | EOR3 <Zdn>.D, <Zdn>.D, <Zm>.D, <Zk>.D | SVE2 Bitwise | SVE2 | Exclusive OR of three vectors. |
| eors | EORS <Pd>.B, <Pg>/Z, <Pn>.B, <Pm>.B | SVE | SVE | Predicate XOR (Set Flags) |
| eorv | EORV <Vd>, <Pg>, <Zn>.<T> | SVE Reduction | SVE | XORs all active elements into a scalar. |
| eret | ERET | System | Base | Returns from an exception. |
| eret | ERET | System | A32 (System) | Returns from an exception (A32). |
| eret | ERET | Thumb System | A32 (System) | Returns from an exception (Thumb state). |
| esb | ESB | System Hint | A32 (RAS) | Synchronizes system errors (v8.2). |
| esb | ESB | System Alias | RAS (Reliability) | Synchronizes unrecoverable system errors. |
| ext | EXT <Zdn>.<T>, <Zdn>.<T>, <Zm>.<T>, #<imm> | SVE Permute | SVE | Extracts a vector from a pair (sliding window) using immediate byte index. |
| ext | EXT <Vd>.<T>, <Vn>.<T>, <Vm>.<T>, #<index> | SIMD Extract | NEON (SIMD) | Extracts a vector from a pair of vectors (Sliding window). |
| extr | EXTR <Wd>, <Wn>, <Wm>, #<lsb> | Data Processing | Base | Extracts a register from a pair of registers. |
| extr | EXTR <Xd>, <Xn>, <Xm>, #<lsb> | Data Processing | Base | Extracts a 64-bit register from a pair. |
| fabs | FABS <Zdn>.<T>, <Pg>/M, <Zdn>.<T> | SVE FP Unary | SVE | Calculates absolute value of floats. |
| fabs | FABS <Hd|Sd|Dd>, <Hn|Sn|Dn> | FP Data Processing | Floating Point | Calculates the absolute value of a float. |
| fabs | FABS <Vd>.<T>, <Vn>.<T> | SIMD Two Register | NEON (SIMD) | Calculates absolute value for each element. |
| fabs | FABS <Vd>.8H, <Vn>.8H | NEON FP16 | FEAT_FP16 (NEON) | Absolute value of half-precision vector. |
| fadd | FADD <Hd|Sd|Dd>, <Hn|Sn|Dn>, <Hm|Sm|Dm> | FP Data Processing | Floating Point | Adds two floating-point values. |
| fadd | FADD <Vd>.<T>, <Vn>.<T>, <Vm>.<T> | SIMD Three Register | NEON (SIMD) | Adds elements of two floating-point vectors. |
| fadd | FADD <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T> | SVE FP Binary | SVE | Adds floating-point elements under predicate. |
| fadd | FADD <Vd>.8H, <Vn>.8H, <Vm>.8H | NEON FP16 | FEAT_FP16 (NEON) | Adds two half-precision floating-point vectors. |
| fadd | FADD <Sd>, <Sn>, <Sm> | Float Data Proc | F.P. | Adds two single-precision floating-point registers. |
| fadd | FADD <Dd>, <Dn>, <Dm> | Float Data Proc | F.P. | Adds two double-precision floating-point registers. |
| fadda | FADDA <V><dn>, <Pg>, <V><dn>, <Zm>.<T> | SVE | SVE | Floating-point Add Across Vector. |
| faddp | FADDP <Vd>.<T>, <Vn>.<T>, <Vm>.<T> | SIMD Three Register | NEON (SIMD) | Adds adjacent pairs of float elements. |
| faddp | FADDP <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T> | SVE2 | SVE2 | Floating-point Add Pairwise. |
| faddv | FADDV <Vd>, <Pg>, <Zn>.<T> | SVE Reduction | SVE | Sums all active floating-point elements into a scalar result. |
| fcadd | FCADD <Zdn>.<T>, <Pg>/M, <Zdn>.<T>, <Zm>.<T>, #<rot> | SVE FP Complex | SVE | Performs complex addition with rotation. |
| fcadd | FCADD <Vd>.4S, <Vn>.4S, <Vm>.4S, #<rot> | NEON Complex | FEAT_FCMA | Complex addition with rotation (NEON). |
| fccmp | FCCMP <Hn|Sn|Dn>, <Hm|Sm|Dm>, #<nzcv>, <cond> | FP Compare | Floating Point | Compares floats only if condition is met, else sets flags to immediate. |
| fclamp | FCLAMP <Zd>.<T>, <Zn>.<T>, <Zm>.<T> | SVE2.1 | SVE2p1 | Clamps floating-point elements between min and max (SVE2.1). |
| fcmeq | FCMEQ <Pd>.<T>, <Pg>/Z, <Zn>.<T>, <Zm>.<T> | SVE FP Compare | SVE | Sets predicate bits where float elements are equal. |
| fcmge | FCMGE <Pd>.<T>, <Pg>/Z, <Zn>.<T>, <Zm>.<T> | SVE | SVE | Floating-point Compare Greater Equal. |
| fcmgt | FCMGT <Pd>.<T>, <Pg>/Z, <Zn>.<T>, <Zm>.<T> | SVE FP Compare | SVE | Sets predicate bits where float Zn > Zm. |
| fcmla | FCMLA <Zda>.<T>, <Pg>/M, <Zn>.<T>, <Zm>.<T>, #<rot> | SVE FP Complex | SVE | Performs complex multiply-accumulate. |
| fcmla | FCMLA <Vd>.4S, <Vn>.4S, <Vm>.4S, #<rot> | NEON Complex | FEAT_FCMA | Complex multiply-accumulate with rotation (NEON). |
| fcmne | FCMNE <Pd>.<T>, <Pg>/Z, <Zn>.<T>, <Zm>.<T> | SVE | SVE | Floating-point Compare Not Equal. |
| fcmp | FCMP <Hn|Sn|Dn>, <Hm|Sm|Dm|#0.0> | FP Compare | Floating Point | Compares two floating-point values and updates process flags (NZCV). |
| fcmp | FCMP <Sn>, <Sm> | Float Compare | F.P. | Compares two single-precision registers and updates NZCV flags. |
| fcmp | FCMP <Dn>, <Dm> | Float Compare | F.P. | Compares two double-precision registers and updates NZCV flags. |
| fcsel | FCSEL <Hd|Sd|Dd>, <Hn|Sn|Dn>, <Hm|Sm|Dm>, <cond> | FP Data Processing | Floating Point | Selects one of two floats based on condition flags. |
| fcvt | FCVT <Hd|Sd|Dd>, <Hn|Sn|Dn> | FP Conversion | Floating Point | Converts between float precisions (e.g., Half <-> Single <-> Double). |