CBHLS

Compare unsigned lower than or equal halfwords and branch

This instruction compares the unsigned halfword values in two registers, and conditionally branches to a label at a PC-relative offset if the second value is lower than or equal to the first. It provides a hint that this is not a subroutine call or return. This instruction does not affect the condition flags.

Encoding: Branch

Variants: FEAT_CMPBR (ARMv9.6)

313029282726252423222120191817161514131211109876543210
0111010001111
ccRmHimm9Rt

Higher or same

CBHLS <Wm>, <Wt>, <label>

Equivalent to: CBHHS <Wt>, <Wm>, <label>

Explanations

<Wm>: Is the 32-bit name of the second general-purpose source register, encoded in the "Rm" field.
<Wt>: Is the 32-bit name of the general-purpose register to be tested, encoded in the "Rt" field.
<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.