User’s Manual

IBM PowerPC 750GX and 750GL RISC Microprocessor

speculatively executed instructions and restore the machine state to immediately after the branch. This correction can be done immediately upon resolution of the Condition Registers bits.

Branch Instructions

Table 2-27lists the branch instructions provided by the PowerPC processors. To simplify assembly language programming, a set of simplified mnemonics and symbols is provided for the most frequently used forms of branch conditional, compare, trap, rotate and shift, and certain other instructions. See Appendix F, “Simplified Mnemonics” in the PowerPC Microprocessor Family: The Programming Environments Manual for a list of simplified mnemonic examples.

Table 2-27. Branch Instructions

Name

 

Mnemonic

Syntax

 

 

 

 

 

 

 

 

 

 

 

 

Branch

b

(ba

bl

bla)

target_addr

 

 

 

 

 

 

Branch Conditional

bc

(bca

bcl

bcla)

BO,BI,target_addr

 

 

 

 

 

Branch Conditional to Link Register

 

bclr

(bclrl)

BO,BI

 

 

 

 

Branch Conditional to Count Register

bcctr

(bcctrl)

BO,BI

 

 

 

 

 

 

Condition Register Logical Instructions

Condition Register logical instructions and the Move Condition Register Field (mcrf) instruction are also defined as flow-control instructions. Table 2-28shows these instructions.

Table 2-28. Condition Register Logical Instructions

Name

Mnemonic

Syntax

 

 

 

 

 

 

Condition Register AND

crand

crbD,crbA,crbB

 

 

 

Condition Register OR

cror

crbD,crbA,crbB

 

 

 

Condition Register XOR

crxor

crbD,crbA,crbB

 

 

 

Condition Register NAND

crnand

crbD,crbA,crbB

 

 

 

Condition Register NOR

crnor

crbD,crbA,crbB

 

 

 

Condition Register Equivalent

creqv

crbD,crbA,crbB

 

 

 

Condition Register AND with Complement

crandc

crbD,crbA,crbB

 

 

 

Condition Register OR with Complement

crorc

crbD,crbA,crbB

 

 

 

Move Condition Register Field

mcrf

crfD,crfS

 

 

 

Note: If the LR update option is enabled for any of these instructions, the PowerPC Architecture defines these forms of the instructions as invalid.

gx_02.fm.(1.2)

Programming Model

March 27, 2006

Page 107 of 377