bclrl

Branch Conditional to Link Register (Link)

bclrl BO,BI,BH

Branches to the address in the Link Register if the specified condition is met, and sets the Link Register to the return address.

Encoding

Binary Layout
 
Format XL-form
Opcode
Extension Base

Operands

  • BO
    Branch options / condition to test
  • BI
    Condition Register bit to test
  • BH
    Branch hint

Example

bclr 20, 0

// Unconditional return (blr).

Registers Altered

CTR, LR

Related

More in Base

Reference

Description

Conditional branch to the Link Register (see bclr) with LK=1 -- the Link Register is set to the return address after the branch is taken.

Operation

(see bclr)

Extended Mnemonics

Extended Mnemonic Equivalent Instruction
bcctr
bltctr
bnectr
bclr
bltlr
bnelr
bdnzlr
bcctr
bcctrl
bclr 4,6
bnelr cr2

Programming Note

bclr, bclrl, bcctr, and bcctrl each serve as both a basic and an extended mnemonic. The Assembler will recognize a bclr, bclrl, bcctr, or bcctrl mnemonic with three operands as the basic form, and a bclr, bclrl, bcctr, or bcctrl mnemonic with two operands as the extended form. In the extended form the BH operand is omitted and assumed to be 0b00.