IBM PowerPC 604 User Manual page 93

Risc
Table of Contents

Advertisement

Table 2·9. Integer Arithmetic Instructions (Continued)
Name
Mnemonic
Operand Syntax
Subtract from Immediate Carrying
subtle
rD,rA,SIMM
Add Carrying
addc (addc. addco addco.)
rD,rA,rB
Subtract from Carrying
subfc (subfc. subfco subfco.)
rD,rA,rB
Add Extended
adde (adde. addeo addeo.)
rD,rA,rB
Subtract from Extended
subfe (subfe. subfeo subfeo.)
rD,rA,rB
Add to Minus One Extended
addme (addme. addmeo addmeo.)
rD,rA
Subtract from Minus One Extended
subfme (subfme. subfmeo subfmeo.)
rD,rA
Add to Zero Extended
addze (addze. addzeo addzeo.)
rD,rA
Subtract from Zero Extended
subtze (subtze. subtzeo subtzeo.)
rD,rA
Negate
neg (neg. nego nego.)
rD,rA
Multiply
Low
Immediate
mum
rD,rA,SIMM
Multiply
low
mullw (mullw. mullwo mullwo.)
rD,rA,rB
Multiply High Word
mulhw (mulhw.)
rD,rA,rB
Multiply High Word Unsigned
mulhwu (mulhwu.)
rD,rA,rB
Divide Word
dlvw (dlvw. dlvwo dlvwo.)
rD,rA,rB
Divide Word Unsigned
dlvwu dlvwu. dlvwuo dlvwuo.
rD,rA,rB
Although there is no Subtract Immediate instruction, its effect can be achieved by using an
addi instruction with the immediate operand negated. Simplified mnemonics are provided
that include this negation. The subf instructions subtract the second operand (r A) from the
third operand (rB). Simplified mnemonics are provided in which the third operand is
subtracted from the second operand. See Appendix F, "Simplified Mnemonics," in The
Programming Environments Manual
for examples.
The UISA states that for some implementations that execute instructions that set the
overflow bit (OE) or the carry bit (CA) it may either execute these instructions slowly or it
may prevent the execution of the subsequent instruction until the operation is complete. The
604 arithmetic instructions may suffer this penalty. The summary overflow bit (SO) and
overflow bit (OV) in the integer exception register are set to reflect an overflow condition
of a 32-bit result. This may only occur when the overflow enable bit is set (OE= 1).
Chapter
2.
PowerPC 604 Processor Programming Model
2-27
-

Advertisement

Table of Contents
loading

Table of Contents