16.41 CBZ

Compare and Branch on Zero.

Syntax

CBZ Wt, label ; 32-bit

CBZ 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 Zero compares the value in a register with zero, and conditionally branches to a label at a PC-relative offset if the comparison is equal. It provides a hint that this is not a subroutine call or return. This instruction does not affect condition flags.

Non-ConfidentialPDF file icon PDF versionARM 100069_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.