blt

Branch if Less Than

blt target_addr

Branches to a target address if the condition 'less than' is true.

Encoding

Binary Layout
10
AA
LK
LI
 
Format B-form
Opcode 0x41800000
Extension Base

Operands

  • target
    Target Address

Example

blt target

Registers Altered

LR, CTR

Related

More in Base

Reference

Description

The instruction checks if the condition 'less than' in the specified CR field is true and branches to the target address if it is.

Operation

if CR[CR field][LT] then
    PC <- target_address

Extended Mnemonics

Extended Mnemonic Equivalent Instruction

Programming Note

The blt instruction is commonly used for conditional branching based on comparison results. Ensure that the correct condition register (CR) field is specified, as this directly affects the branch decision. The target address must be properly calculated to avoid incorrect jumps. This instruction operates at user privilege level and does not generate exceptions under normal circumstances.