Table 2-24. Cr Updating Instructions - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

Preliminary

Table 2-24. CR Updating Instructions

Storage
Arithmetic
Access
add.
o
[
]
addc.
o
[
]
adde
o
.[
]
addic.
addme.
o
[
]
addze.
o
[
]
subf.
o
[
]
subfc.
o
[
]
subfe.
o
[
]
subfme.
o
stwcx.
[
subfze.
o
[
]
mulhw.
mulhwu.
mullw.
o
[
]
divw.
o
[
]
divwu.
o
[
]
neg.[o]
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.
prgmodel.fm.
September 12, 2002
Integer
Logical
Compare
and.
andi.
andis.
andc.
nand.
cmp
or.
cmpi
orc.
]
cmpl
nor.
cmpli
xor.
eqv.
extsb.
extsh.
cntlzw.
Processor
Control
CR-Logical
Rotate
Shift
and Register
Management
crand
crandc
creqv
crnand
slw.
rlwimi.
crnor
srw.
cror
rlwinm.
crorc
sraw.
rlwnm.
crxor
srawi.
mcrf
mcrxr
mtcrf
User's Manual
PPC440x5 CPU Core
Storage
Auxiliary
Control
Processor
TLB
Arithmetic
Mgmt.
and Logical
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
[
]
tlbsx.
nmacchws.
o
[
]
nmachhw.
o
[
]
nmachhws.
o
[
]
nmaclhw.
o
[
]
nmaclhws.
o
[
]
mulchw.
mulchwu.
mulhhw.
mulhhwu.
mullhw.
mullhwu.
dlmzb.
Page 69 of 589

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents