Integer Compare Instructions; Integer Logical Instructions - IBM PowerPC 604 User Manual

Risc
Table of Contents

Advertisement

-
2.3.4.1.2 Integer Compare Instructions
The integer compare instructions algebraically or logically compare the contents of register
rA with either the zero-extended value of the UIMM operand, the sign-extended value of
the SIMM operand, or the contents of register rB. The comparison is signed for the cmpi
and cmp instructions, and unsigned for the cmpli and cmpl instructions. Table 2-10
summarizes the integer compare instructions.
Table 2-10. Integer Compare Instructions
Name
Mnemonic
Operand Syntax
Compare Immediate
cmpl
crfD,L,rA,SIMM
Compare
cmp
crfD,L,rA,rB
Compare Logical Immediate
cmpll
crfD,L,rA,UIMM
Compare Logical
cmpl
crfD,L,rA,rB
The crtD operand can be omitted if the result of the comparison is to be placed in CRO.
Otherwise the target CR field must be specified in the instruction crtD field, using an
explicit field number.
For information on simplified mnemonics for the integer compare instructions see
Appendix F, "Simplified Mnemonics," in
The Programming Environments Manual.
2.3.4.1.3 Integer Logical Instructions
The logical instructions shown in Table 2-11 perform bit-parallel operations on the
specified operands. Logical instructions with the CR updating enabled (uses dot suffix) and
instructions andi. and andis. set CR field CRO to characterize the result of the logical
operation. Logical instructions do not affect the XER[SO], XER[OV], and XER[CA] bits.
See Appendix F, "Simplified Mnemonics," in
The Programming Environments Manual
for
simplified mnemonic examples for integer logical operations.
Table 2-11. Integer Logical Instructions
Name
Mnemonic
Operand
syntax
AND Immediate
and I.
rA,rS,UIMM
AND Immediate Shifted
and ls.
rA,rS,UIMM
OR Immediate
Ori
rA,rS,UIMM
OR Immediate Shifted
orls
rA,rS,UIMM
XOR Immediate
xorl
rA,rS,UIMM
XOR Immediate Shifted
xorls
rA,rS,UIMM
AND
and (and.)
rA,rS,rB
OR
or (or.)
rA,rS,rB
2·28
PowerPC 604 RISC Microprocessor User's Manual

Advertisement

Table of Contents
loading

Table of Contents