mulhhw
Multiply High Halfword
mulhhw RT, RA, RB
Multiply top half of RA by top half of RB.
Encoding
Binary Layout
4
0:5
RT
6:10
RA
11:15
RB
16:20
40
21:30
0
31
Operands
-
RT
Target -
RA
Src A -
RB
Src B
Example
mulhhw r3, r4, r5
Related
More in Embedded
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Multiplies the sign-extended top halfword of RA by the sign-extended top halfword of RB, storing the low 32 bits of the product in RT. This is a signed 16×16→32 multiply operation on the upper halves. No condition register or status flags are affected.
Operation
a ← EXTS(RA[0:15])
b ← EXTS(RB[0:15])
RT ← (a × b)[32:63]