* Question
What Are the Main Types of Arm Instructions?
* Answer
Arm instructions can be classified by what they do, such as processing data, accessing memory, or changing program flow. They can also be distinguished by their instruction set, including A32, T32, and A64. These are separate classifications: a load instruction, for example, belongs to a functional category and has an encoding in a particular instruction set.
Classification by Function
The following groups provide a practical introduction. Exact instruction availability and syntax depend on the architecture version, processor, and implemented extensions.
Instruction Category | Purpose | Representative Mnemonics |
Data movement | Moves values between registers or constructs constants | MOV, MOVW and MOVT in supported A32/T32 implementations; MOVZ and MOVK in A64 |
Arithmetic | Performs addition, subtraction, multiplication, or division | ADD, SUB, MUL, SDIV, UDIV |
Logical and bit manipulation | Performs Boolean operations, shifts, and bit-field operations | AND, ORR, EOR, LSL, LSR, ASR |
Comparison and testing | Updates condition flags for later decisions | CMP, CMN, TST |
Load and store | Transfers data between memory and registers | LDR, STR, LDRB, STRB |
Branch and procedure control | Implements jumps, loops, function calls, and returns | B, BL; BX in A32/T32; RET in A64 |
System and exception control | Accesses system state or supports exceptions and debugging | MRS, MSR, SVC, BKPT in A32/T32; BRK in A64 |
Synchronization and memory ordering | Supports coordination and ordered memory access | DMB, DSB, ISB; architecture-specific atomic instructions |
Floating-point, DSP, and vector operations | Accelerates numerical and signal-processing workloads | Examples include VADD in supported A32/T32 floating-point implementations and FADD in A64 |
This is a teaching classification rather than a universal official grouping. Architecture manuals may combine several rows under “data processing” or separate instructions into more detailed groups. Some mnemonics are aliases, and the examples above are not supported on every Arm processor. Arm’s instruction references distinguish instruction availability across A32 and T32 implementations.
Why Load and Store Instructions Matter
Arm generally follows a load/store architecture: ordinary arithmetic and logical instructions operate on registers, while dedicated instructions transfer data to and from memory.
For example, this A32/T32-style sequence loads a value, increments it, and stores the result:
LDR r0, [r1] ; Read a word from the address in r1
ADD r0, r0, #1 ; Increment the value
STR r0, [r1] ; Write the result back
The sequence is illustrative and is not an atomic increment. Shared data may require additional synchronization.
Classification by Instruction Set
Instruction Set | Instruction Encoding Length | Main Context |
A32, historically called Arm | Fixed 32-bit instructions | AArch32 execution on processors that support A32 |
T32, commonly called Thumb | Includes 16-bit and 32-bit encodings | Supported AArch32 processors and Cortex-M microcontrollers |
A64 | Fixed 32-bit instructions | AArch64 execution |
The “64” in A64 refers to its association with AArch64 execution, not a 64-bit instruction length. Also, not every processor implements all three instruction sets.
Cortex-M processors execute Thumb instructions, with the supported subset varying by core. For example, Cortex-M0 implements the Armv6-M Thumb instruction set, including a limited number of 32-bit instructions; it does not execute A32 or A64 code.
Practical Development Considerations
Before writing assembly or selecting an MCU or processor, confirm its architecture, instruction-set support, and optional numerical extensions. Configure the compiler for the actual target and check the processor documentation when using division, floating-point, DSP, or vector instructions. Instruction compatibility alone also does not guarantee identical execution timing across processors.
