You copied the Doc URL to your clipboard.

16.54 CSET

Conditional Set.

This instruction is an alias of CSINC.

Syntax

CSET Wd, cond ; 32-bit general registers

Equivalent to CSINC Wd, WZR, WZR, invert(cond).

CSET Xd, cond ; 64-bit general registers

Equivalent to CSINC Xd, XZR, XZR, invert(cond).

Where:

Wd

Is the 32-bit name of the general-purpose destination register.

Xd

Is the 64-bit name of the general-purpose destination register.

cond

Is one of the standard conditions, excluding AL and NV.

Operation

Conditional Set sets the destination register to 1 if the condition is TRUE, and otherwise sets it to 0.

Rd = if cond then 1 else 0, where R is either W or X.

Was this page helpful? Yes No