Simplified Mnemonics for PowerPC Instructions
PowerPC e500 Core Family Reference Manual, Rev. 1
Freescale Semiconductor C-13
Table C-12 lists simplified mnemonics and syntax for bc and bca without LR updating.
Table C-13 lists simplified mnemonics and syntax for bclr and bcctr without LR updating.
Table C-12. Simplified Mnemonics for bc and bca without LR Update
Branch Semantics bc
Simplified
Mnemonic
bca
Simplified
Mnemonic
Branch unconditionally — — — —
Branch if condition true
1
1
Instructions for which B0 is either 12 (branch if condition true) or 4 (branch if condition false) do not depend on the CTR value
and can be alternately coded by incorporating the condition specified by the BI field, as described in Section C.4.6, “Simplified
Mnemonics that Incorporate CR Conditions (Eliminates BO and Replaces BI with crS).”
bc 12,BI,target bt BI,target bca 12,BI,target bta BI,target
Branch if condition false
1
bc 4,BI,target bf BI,target bca 4,BI,target bfa BI,target
Decrement CTR, branch if CTR ≠ 0 bc 16,0,target bdnz target
2
2
Simplified mnemonics for branch instructions that do not test CR bits should specify only a target. Otherwise a programming
error may occur.
bca 16,0,target bdnza target
2
Decrement CTR, branch if CTR ≠ 0 and condition true bc 8,BI,target bdnzt BI,target bca 8,BI,target bdnzta BI,target
Decrement CTR, branch if CTR ≠ 0 and condition false bc 0,BI,target bdnzf BI,target bca 0,BI,target bdnzfa BI,target
Decrement CTR, branch if CTR = 0 bc 18,0,target bdz target
2
bca 18,0,target bdza target
2
Decrement CTR, branch if CTR = 0 and condition true bc 10,BI,target bdzt BI,target bca 10,BI,target bdzta BI,target
Decrement CTR, branch if CTR = 0 and condition false bc 2,BI,target bdzf BI,target bca 2,BI,target bdzfa BI,target
Table C-13. Simplified Mnemonics for bclr and bcctr without LR Update
Branch Semantics bclr
Simplified
Mnemonic
bcctr
Simplified
Mnemonic
Branch unconditionally bclr 20,0 blr
1
1
Simplified mnemonics for branch instructions that do not test a CR bit should not specify one; a programming error
may occur.
bcctr 20,0 bctr
1
Branch if condition true
2
2
Instructions for which B0 is 12 (branch if condition true) or 4 (branch if condition false) do not depend on a CTR
value and can be alternately coded by incorporating the condition specified by the BI field. See Section C.4.6,
“Simplified Mnemonics that Incorporate CR Conditions (Eliminates BO and Replaces BI with crS).”
bclr 12,BI btlr BI bcctr 12,BI btctr BI
Branch if condition false
2
bclr 4,BI bflr BI bcctr 4,BI bfctr BI
Decrement CTR, branch if CTR ≠ 0 bclr 16,BI bdnzlr BI ——
Decrement CTR, branch if CTR ≠ 0 and condition true bclr 8,BI bdnztlr BI ——
Decrement CTR, branch if CTR ≠ 0 and condition false bclr 0,BI bdnzflr BI ——
Decrement CTR, branch if CTR = 0 bclr 18,0 bdzlr
1
——
Decrement CTR, branch if CTR = 0 and condition true bclr 8,BI bdnztlr BI ——
Decrement CTR, branch if CTR = 0 and condition false bclr 2,BI bdzflr BI ——