2.5.2. Execution conditions

The relation of condition code suffixes to the N, Z, C and V flags is shown in Table 2.1.

Table 2.1. Condition code suffixes

EQZ setEqual
NEZ clearNot equal
CS/HSC setHigher or same (unsigned >= )
CC/LOC clearLower (unsigned < )
MIN setNegative
PLN clearPositive or zero
VSV setOverflow
VCV clearNo overflow
HIC set and Z clearHigher (unsigned > )
LSC clear or Z setLower or same (unsigned <= )
GEN and V the sameSigned >=
LTN and V differSigned <
GTZ clear, N and V the sameSigned >
LEZ set, N and V differSigned <=
ALAnyAlways. This suffix is normally omitted.


    ADD     r0, r1, r2    ; r0 = r1 + r2, don't update flags
    ADDS    r0, r1, r2    ; r0 = r1 + r2, and update flags
    ADDCSS  r0, r1, r2    ; If C flag set then r0 = r1 + r2, and update flags
    CMP     r0, r1        ; update flags based on r0-r1.
Copyright © 2000, 2001 ARM Limited. All rights reserved.ARM DUI 0068B