ARM / OFFLINE REFERENCE

On this page
← Home

CBGE (immediate)

Compare signed greater than or equal to immediate and branch

This instruction compares the signed value in a register with an immediate, and conditionally branches to a label at a PC-relative offset if the register value is greater than or equal to the immediate. This instruction provides a hint that this is not a subroutine call or return. This instruction does not affect the condition flags.

This is a pseudo-instruction of CB<cc> (immediate). This means:

Branch class
(FEAT_CMPBR)

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
sf 1 1 1 0 1 0 1 0 0 0 imm6 0 imm9 Rt
cc

32-bit greater than encoding

(sf == 0)

CBGE <Wt>, #<immp1>, <label>

is equivalent to

CBGT <Wt>, #<imm>, <label>

64-bit greater than encoding

(sf == 1)

CBGE <Xt>, #<immp1>, <label>

is equivalent to

CBGT <Xt>, #<imm>, <label>

Assembler Symbols

<Wt>

Is the 32-bit name of the general-purpose register to be tested, encoded in the "Rt" field.

<immp1>

Is an unsigned immediate, in the range 1 to 64, encoded as "imm6" plus 1.

<label>

Is the program label to be conditionally branched to. Its offset from the address of this instruction, in the range -1024 to 1020, is encoded as "imm9" times 4.

<Xt>

Is the 64-bit name of the general-purpose register to be tested, encoded in the "Rt" field.

Operation

The description of CB<cc> (immediate) gives the operational pseudocode for this instruction.


Version 2026.09 — Copyright © 2010-2026 Arm Limited or its affiliates.

This site is provided as a community resource and is NOT affiliated with nor endorsed by Arm Limited.