You copied the Doc URL to your clipboard.

CBNZ

Compare and Branch on Nonzero.

Syntax

CBNZ Wt, label ; 32-bit

CBNZ Xt, label ; 64-bit

Where:

Wt
Is the 32-bit name of the general-purpose register to be tested.
Xt
Is the 64-bit name of the general-purpose register to be tested.
label
Is the program label to be conditionally branched to. Its offset from the address of this instruction, in the range ±1MB.

Usage

Compare and Branch on Nonzero compares the value in a register with zero, and conditionally branches to a label at a PC-relative offset if the comparison is not equal. It provides a hint that this is not a subroutine call or return. This instruction does not affect the condition flags.

Was this page helpful? Yes No