You copied the Doc URL to your clipboard.

16.38 CCMP (register)

Conditional Compare (register).

Syntax

CCMP Wn, Wm, #nzcv, cond ; 32-bit general registers

CCMP Xn, Xm, #nzcv, cond ; 64-bit general registers

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 cond then compare(Rn, Rm) else #nzcv, where R is either W or X.

Was this page helpful? Yes No