IBM SA14-2339-04 Personal Computer User Manual


 
Programming Model 2-39
Table 2-14 lists additional arithmetic instructions for multiply-accumulate and multiply halfword
operations. In the table, the syntax “[o]” indicates that an instruction has an “o” form that updates
XER[SO,OV], and a “non-o” form. The syntax “[.]” indicates that the instruction has a “record” form
that updates CR[CR0], and a “non-record” form.
2.11.4 Logical Instructions
Table 2-15 lists the PPC405 logical instructions. In the table, the syntax “[.]” indicates that the
instruction has a “record” form that updates CR[CR0], and a “non-record” form.
2.11.5 Compare Instructions
These instructions perform arithmetic or logical comparisons between two operands and update the
CR with the result of the comparison.
Table 2-16 lists the PPC405 core compare instructions.
Table 2-14. Multiply-Accumulate and Multiply Halfword Instructions
Multiply-
Accumulate
Negative-
Multiply-
Accumulate
Multiply
Halfword
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[.]
Table 2-15. Logical Instructions
And
And with
complement Nand Or
Or with
complement Nor Xor Equivalence Extend sign
Count
leading
zeros
and[.]
andi.
andis.
andc[.] nand[.] or[.]
ori
oris
orc[.] nor[.] xor[.]
xori
xoris
eqv[.] extsb[.]
extsh[.]
cntlzw[.]
Table 2-16. Compare Instructions
Arithmetic Logical
cmp
cmpi
cmpl
cmpli