AMCC Proprietary 64
Revision 1.02 - September 10, 2007
PPC405 Processor
Preliminary User’s Manual
2.11.4 Logical Instructions
Table 2-17 lists the PPC405 logical instructions. In the table, the syntax [.] indicates that the instruction has a
“record” form that updates CR[CR0], and a “non-record” form.
2.11.5 Compare Instructions
These instructions perform arithmetic or logical comparisons between two operands and update the CR with the
result of the comparison.
Table 2-18 lists the PPC405 compare instructions
.
2.11.6 Branch Instructions
These instructions unconditionally or conditionally branch to an address. Conditional branch instructions can test
condition codes set by a previous instruction and branch accordingly. Conditional branch instructions can also
decrement and test the CTR as part of branch determination, and can save the return address in the LR.The target
address for a branch can be a displacement from the current instruction address (a relative address), an absolute
address, or contained in the CTR or LR.
See Branch Processing on page 50 for more information on branch operations.
Table 2-19 lists the PPC405 branch instructions. In the table, the syntax [l] indicates that the instruction has a “link
update” form that updates LR with the address of the instruction after the branch, and a “non-link update” form. The
syntax [a] indicates that the instruction has an “absolute address” form, in which the target address is formed
directly using the immediate field specified as part of the instruction, and a “relative” form, in which the target
address is formed by adding the immediate field to the address of the branch instruction).
Table 2-17. Logical Instructions
And
And with
Complement Nand Or
Or with
Complement Nor Xor Equivalence Extend Sign
Count
Leading
Zeros
and[.]
andi.
andis.
andc
[.] nand[.]
or[.]
ori
oris
orc
[.] nor[.]
xor[.]
xori
xoris
eqv
[.]
extsb[.]
extsh[.]
cntlzw[.]
Table 2-18. Compare Instructions
Arithmetic Logical
cmp
cmpi
cmpl
cmpli
Table 2-19. Branch Instructions
Branch
b[l][a]
bc[l][a]
bcctr[l]
bclr[l]