vmsumshs
Vector Multiply-Sum Signed Halfword Saturate
vmsumshs vD, vA, vB, vC
Performs a vector multiply-sum operation on signed halfwords and saturates the result.
Details
For vmsumshs, each element in VRA and VRB is multiplied by corresponding elements in VRC. The results are summed and saturated if necessary.
Pseudocode Operation
Programming Note
vmsumshs is used for vectorized operations involving signed halfword multiplication and summation. Ensure that the Vector Status and Control Register (VSCR) is properly managed, especially when handling saturation flags. This instruction operates at the user privilege level and will raise an exception if the vector facility is not enabled in the Machine State Register (MSR).
Example
vmsumshs vd, va, vb, vc
Encoding
Binary Layout
4
0
vD
6
vA
11
vB
16
vC
21
41
Operands
-
vD
Target -
vA
Src A -
vB
Src B -
vC
Accumulator -
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register -
VRC
Source Vector Register