Simplified Mnemonics for PowerPC Instructions
PowerPC e500 Core Family Reference Manual, Rev. 1
Freescale Semiconductor C-17
C.4.6.1 Branch Simplified Mnemonics that Incorporate CR Conditions:
Examples
The following examples use the simplified mnemonics shown in Table C-18:
1. Branch if CR0 reflects not-equal condition.
bne target equivalent to bc 4,2,target
2. Same as (1) but condition is in CR3.
bne cr3,target equivalent to bc 4,14,target
3. Branch to an absolute target if CR4 specifies greater than condition, setting the LR. This is
a form of conditional call.
bgtla cr4,target equivalent to bcla 12,17,target
4. Same as (3), but target address is in the CTR.
bgtctrl cr4 equivalent to bcctrl 12,17
C.4.6.2 Branch Simplified Mnemonics that Incorporate CR Conditions:
Listings
Table C-19 shows simplified branch mnemonics and syntax for bc and bca without LR updating.
Table C-19. Simplified Mnemonics for bc and bca without Comparison Conditions or
LR Updating
Branch Semantics bc Simplified Mnemonic bca Simplified Mnemonic
Branch if less than bc 12,BI
1
,target
1
The value in the BI operand selects CR
n
[0], the LT bit.
blt crS target bca 12,BI
1
,target blta crS target
Branch if less than or equal bc 4,BI
2
,target
2
The value in the BI operand selects CR
n
[1], the GT bit.
ble crS target bca 4,BI
2
,target blea crS target
Branch if not greater than bng crS target bnga crS target
Branch if equal bc 12,BI
3
,target
3
The value in the BI operand selects CR
n
[2], the EQ bit.
beq crS target bca 12,BI
3
,target beqa crS target
Branch if greater than or equal bc 4,BI
1
,target bge crS target bca 4,BI
1
,target bgea crS target
Branch if not less than bnl crS target bnla crS target
Branch if greater than bc 12,BI
2
,target bgt crS target bca 12,BI
2
,target bgta crS target
Branch if not equal bc 4,BI
3
,target bne crS target bca 4,BI
3
,target bnea crS target
Branch if summary overflow bc 12,BI
4
,target
4
The value in the BI operand selects CR
n
[3], the SO bit.
bso crS target bca 12,BI
4
,target bsoa crS target
Branch if unordered bun crS target buna crS target
Branch if not summary overflow bc 4,BI
4
,target bns crS target bca 4,BI
4
,target bnsa crS target
Branch if not unordered bnu crS target bnua crS target