Machhwsu - IBM PPC440X5 CPU Core User Manual

Cpu core
Table of Contents

Advertisement

Preliminary

machhwsu

Multiply Accumulate High Halfword to Word Saturate Unsigned
machhwsu
RT, RA, RB
machhwsu.
RT, RA, RB
machhwsuo
RT, RA, RB
machhwsuo. RT, RA, RB
4
0
6
prod
(RA)
0:31
0:15
temp
prod
+ (RT)
0:32
0:31
32
(RT)
(temp
1:32
The high-order halfword of RA is multiplied by the high-order halfword of RB. The unsigned product is
summed with the contents of RT.
If the unsigned sum can be represented in 32 bits, then RT is updated with the low-order 32 bits of the
unsigned sum.
If the unsigned sum cannot be represented in 32 bits, then RT is updated with a value which is "saturated" to
the maximum representable value of 2
Registers Altered
• RT
• CR[CR0] if Rc contains 1
• XER[SO, OV] if OE contains 1
Architecture Note
This instruction is implementation-specific and programs which use this instruction may not be portable to
other PowerPC Book-E implementations. See Instruction Set Portability on page 250.
instrset.fm.
September 12, 2002
OE=0, Rc=0
OE=0, Rc=1
OE=1, Rc=0
OE=1, Rc=1
RT
RA
11
(RB)
unsigned
0:15
temp
)
0
32
– 1.
Multiply Accumulate High Halfword to Word Saturate Unsigned
PPC440x5 CPU Core User's Manual
RB
OE
16
21 22
machhwsu
76
Rc
31
Page 351 of 589

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents