You copied the Doc URL to your clipboard.
CCMP (register)
Conditional Compare (register).
Syntax
CCMP
Wn
, Wm
, #nzcv
, cond
; 32-bit
CCMP
Xn
, Xm
, #nzcv
, cond
; 64-bit
Where:
Wn
- Is the 32-bit name of the first general-purpose source register.
Wm
- Is the 32-bit name of the second general-purpose source register.
Xn
- Is the 64-bit name of the first general-purpose source register.
Xm
- Is the 64-bit name of the second general-purpose source register.
nzcv
- Is the flag bit specifier, an immediate in the range 0 to 15, giving the alternative state for the 4-bit NZCV condition flags.
cond
- Is one of the standard conditions.
Operation
Conditional Compare (register) sets the value of the condition flags to the result of the comparison of two registers if the condition is TRUE, and an immediate value otherwise.
flags = if
, where cond
then compare(R
n, R
m) else #nzcv
is either R
W
or X
.