7.6 Updatesto the condition flags in A32/T32 code
In AArch32 state, the condition flags are held in the Application Program Status Register (APSR). You can read and modify the flags using the read-modify-write procedure.
Most A32 and T32 data processing instructions have an optionto update the condition flags according to the result of the operation.Instructions with the optional S suffix update the flags. Conditionalinstructions that are not executed have no effect on the flags.
Which flags are updated depends on the instruction. Some instructions update all flags, and some update a subset of the flags. If a flag is not updated, the original value is preserved. The description of each instruction mentions the effect that it has on the flags.
NoteMost instructions update the condition flags only if the Ssuffix is specified. The instructions
TSTalways update the flags.