User’s Manual
Preliminary PPC440x5 CPU Core
prgmodel.fm.
September 12, 2002
Page 69 of 589
Instruction Set on page 249, provides detailed information on how each of these instructions updates the CR.
To summarize, the CR can be accessed in any of the following ways:
• mfcr reads the CR into a GPR. Note that this instruction does not update the CR and is therefore not
listed in Table 2-24.
• Conditional branch instructions can designate a CR bit to be used as a branch condition. Note that these
instructions do not update the CR and are therefore not listed in Table 2-24.
• mtcrf sets specified CR fields by writing to the CR from a GPR, under control of a mask field specified as
part of the instruction.
• mcrf updates a specified CR field by copying another specified CR field into it.
• mcrxr copies certain bits of the XER into a specified CR field, and clears the corresponding XER bits.
• Integer compare instructions update a specified CR field.
• CR-logical instructions update a specified CR bit with the result of any one of eight logical operations on
a specified pair of CR bits.
Table 2-24. CR Updating Instructions
Integer
Processor
Control
Storage
Control
Auxiliary
Processor
Storage
Access
Arithmetic Logical Compare Rotate Shift
CR-Logical
and Register
Management
TLB
Mgmt.
Arithmetic
and Logical
stwcx.
add.
[o]
addc.[o]
adde.[o]
addic.
addme.
[o]
addze.[o]
subf.[o]
subfc.[o]
subfe.[o]
subfme.[o]
subfze.[o]
mulhw.
mulhwu.
mullw.
[o]
divw.[o]
divwu.[o]
neg.[o]
and.
andi.
andis.
andc.
nand.
or.
orc.
nor.
xor.
eqv.
extsb.
extsh.
cntlzw.
cmp
cmpi
cmpl
cmpli
rlwimi.
rlwinm.
rlwnm.
slw.
srw.
sraw.
srawi.
crand
crandc
creqv
crnand
crnor
cror
crorc
crxor
mcrf
mcrxr
mtcrf
tlbsx.
macchw.
[o]
macchws.[o]
macchwsu.[o]
macchwu.[o]
machhw.[o]
machhws.[o]
machhwsu.[o]
machhwu.[o]
maclhw.[o]
maclhws.[o]
maclhwsu.[o]
maclhwu.[o]
nmacchw.[o]
nmacchws.[o]
nmachhw.[o]
nmachhws.[o]
nmaclhw.[o]
nmaclhws.[o]
mulchw.
mulchwu.
mulhhw.
mulhhwu.
mullhw.
mullhwu.
dlmzb.