CBLT (register)

Compare signed less than register and branch

This instruction compares the signed values in two registers, and conditionally branches to a label at a PC-relative offset if the second value is less than the first. It 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> (register). This means:

Branch
(FEAT_CMPBR)

313029282726252423222120191817161514131211109876543210
sf1110100000Rm00imm9Rt
cc

Encoding for the 32-bit greater than variant

Applies when (sf == 0)

CBLT <Wm>, <Wt>, <label>

is equivalent to

CBGT <Wt>, <Wm>, <label>

Encoding for the 64-bit greater than variant

Applies when (sf == 1)

CBLT <Xm>, <Xt>, <label>

is equivalent to

CBGT <Xt>, <Xm>, <label>

Assembler Symbols

<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.

<Xm>

Is the 64-bit name of the second general-purpose source register, encoded in the "Rm" field.

<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> (register) gives the operational pseudocode for this instruction.


Internal version only: aarchmrs v2024-12_rel, pseudocode v2024-12_rel ; Build timestamp: 2024-12-15T22:18

Copyright © 2010-2024 Arm Limited or its affiliates. All rights reserved. This document is Non-Confidential.