CPSR
Current Program Status Register
Holds PE status and control information.
Configuration
This register is present only when FEAT_AA32 is implemented. Otherwise, direct accesses to CPSR are UNDEFINED.
This register is a Special-purpose register.
Attributes
CPSR is a 32-bit register.
Field descriptions
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| N | Z | C | V | Q | RES0 | SSBS | PAN | DIT | RES0 | GE | RES0 | E | A | I | F | RES0 | RES1 | M | |||||||||||||
N, bit [31]:
Negative condition flag. Set to bit[31] of the result of the last flag-setting instruction. If the result is regarded as a two's complement signed integer, then N is set to 1 if the result was negative, and N is set to 0 if the result was positive or zero.
Z, bit [30]:
Zero condition flag. Set to 1 if the result of the last flag-setting instruction was zero, and to 0 otherwise. A result of zero often indicates an equal result from a comparison.
C, bit [29]:
Carry condition flag. Set to 1 if the last flag-setting instruction resulted in a carry condition, for example an unsigned overflow on an addition.
V, bit [28]:
Overflow condition flag. Set to 1 if the last flag-setting instruction resulted in an overflow condition, for example a signed overflow on an addition.
Q, bit [27]:
Cumulative saturation bit. Set to 1 to indicate that overflow or saturation occurred in some instructions.
Bits [26:24]:
Reserved, RES0.
SSBS, bit [23] when FEAT_SSBS is implemented:
Speculative Store Bypass Safe.
Prohibits speculative loads or stores that might practically allow a cache timing side channel.
A speculative value in a register is used in a potentially speculatively exploitable manner if it is used to form an address, generate condition codes, or generate SVE predicate values to be used by other instructions in the speculative sequence or if the execution timing of any other instructions in the speculative sequence is a function of the data loaded under speculation.
| SSBS | Meaning |
|---|---|
| 0b0 |
Hardware is not permitted to use speculative register values in a potentially speculatively exploitable manner if the speculative read that loads the register is from earlier in the coherence order than the entry generated by the latest store to that location using the same virtual address as the load instruction. |
| 0b1 |
When the value of PSTATE.SSBS is 1, hardware is permitted to use speculative register values in a potentially speculatively exploitable manner if the speculative read that loads the register is from earlier in the coherence order than the entry generated by the latest store to that location using the same virtual address as the load instruction. |
The value of this bit is usually set to the value described by the SCTLR.DSSBS bit on exceptions to any mode except Hyp mode, and the value described by HSCTLR.DSSBS on exceptions to Hyp mode.
The reset behavior of this field is:
- On a Warm reset, this field resets to an IMPLEMENTATION DEFINED value.
Otherwise:
Reserved, RES0.
PAN, bit [22] when FEAT_PAN is implemented:
Privileged Access Never.
| PAN | Meaning |
|---|---|
| 0b0 |
The translation system is the same as Armv8.0. |
| 0b1 |
Disables privileged read and write accesses to addresses accessible at EL0. |
The value of this bit is usually preserved on taking an exception, except in the following situations:
- When the target of the exception is EL1, and the value of the SCTLR.SPAN bit for the current Security state is 0, this bit is set to 1.
- When the target of the exception is EL3, from Secure state, and the value of the Secure SCTLR.SPAN is 0, this bit is set to 1.
- When the target of the exception is EL3, from Non-secure state, this bit is set to 0 regardless of the value of the Secure SCTLR.SPAN bit.
Otherwise:
Reserved, RES0.
DIT, bit [21] when FEAT_DIT is implemented:
Data Independent Timing.
| DIT | Meaning |
|---|---|
| 0b0 |
The architecture makes no statement about the timing properties of any instructions. |
| 0b1 |
The architecture requires that the execution time of a data-independent-time sequence of code must be independent of all data-independent-time values. For more information, see About the DIT bit. |
The Operational Information section of a data processing instruction description indicates if that instruction is affected by this bit.
The reset behavior of this field is:
- On a Warm reset, this field resets to '0'.
Otherwise:
Reserved, RES0.
Bit [20]:
Reserved, RES0.
GE, bits [19:16]:
Greater than or Equal flags, for parallel addition and subtraction.
Bits [15:10]:
Reserved, RES0.
E, bit [9]:
Endianness state bit. Controls the load and store endianness for data accesses:
| E | Meaning |
|---|---|
| 0b0 |
Little-endian operation |
| 0b1 |
Big-endian operation. |
Instruction fetches ignore this bit.
If an implementation does not provide Big-endian support, this bit is RES0. If it does not provide Little-endian support, this bit is RES1.
If an implementation provides Big-endian support but only at EL0, this bit is RES0 for an exception return to any Exception level other than EL0.
Likewise, if it provides Little-endian support only at EL0, this bit is RES1 for an exception return to any Exception level other than EL0.
When the reset value of the SCTLR.EE bit is defined by a configuration input signal, that value also applies to the CPSR.E bit on reset, and therefore applies to software execution from reset.
A, bit [8]:
SError exception mask bit.
| A | Meaning |
|---|---|
| 0b0 |
Exception not masked. |
| 0b1 |
Exception masked. |
I, bit [7]:
IRQ mask bit.
| I | Meaning |
|---|---|
| 0b0 |
Exception not masked. |
| 0b1 |
Exception masked. |
F, bit [6]:
FIQ mask bit.
| F | Meaning |
|---|---|
| 0b0 |
Exception not masked. |
| 0b1 |
Exception masked. |
Bit [5]:
Reserved, RES0.
Bit [4]:
Reserved, RES1.
M, bits [3:0]:
Current PE mode.
| M | Meaning |
|---|---|
| 0b0000 |
User. |
| 0b0001 |
FIQ. |
| 0b0010 |
IRQ. |
| 0b0011 |
Supervisor. |
| 0b0110 |
Monitor. |
| 0b0111 |
Abort. |
| 0b1010 |
Hyp. |
| 0b1011 |
Undefined. |
| 0b1111 |
System. |
Access Instructions
CPSR can be read using the MRS instruction and written using the MSR (register) or MSR (immediate) instructions.
The MSR (register) and MRS instructions used to access CPSR are data-independent-time instructions as described in About PSTATE.DIT.
Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.
This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.