This is a mirror of the original site (arm.jonpalmisc.com), which was taken down.
Hosted on IPFS, storage on Filebase.
Compare unsigned higher than or same as immediate and branch
This instruction compares the unsigned value in a register with an immediate, and conditionally branches to a label at a PC-relative offset if the register value is higher than or the same as 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:
| 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 | 1 | 0 | imm6 | 0 | imm9 | Rt | |||||||||||||||||
| cc | |||||||||||||||||||||||||||||||
is equivalent to
is equivalent to
| <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. |
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.