Instructions by Category B-39
B.9 Comparison Instructions
Comparison instructions perform arithmetic and logical comparisons between two operands and set
one of the eight condition code register fields based on the outcome of the comparison. Table B-10
shows the comparison instructions supported by the PPC405 core.
Table B-10. Comparison Instructions
Mnemonic Operands Function
Other
Registers
Changed Page
cmp BF, 0, RA,
RB
Compare (RA) to (RB), signed.
Results in CR[CRn], where
n
= BF.
9-34
cmpi BF, 0, RA,
IM
Compare (RA) to EXTS(IM), signed.
Results in CR[CRn], where
n
= BF.
9-35
cmpl BF, 0, RA,
RB
Compare (RA) to (RB), unsigned.
Results in CR[CRn], where
n
= BF.
9-36
cmpli BF, 0, RA,
IM
Compare (RA) to (
16
0 || IM), unsigned.
Results in CR[CRn], where
n
= BF.
9-37