vmsumuhs
Vector Multiply-Sum Unsigned Halfword Saturate
Performs a vector multiply-sum operation on unsigned halfwords and saturates the result.
Details
The vmsumuhs instruction performs a vector multiply-sum operation on unsigned halfwords. It multiplies each pair of corresponding halfwords from two source vectors, sums the results with an intermediate value from a third vector, and stores the saturated result in a destination vector.
Pseudocode Operation
Programming Note
The vmsumuhs instruction is commonly used for performing vectorized multiply-sum operations on unsigned halfwords, which can be particularly useful in graphics and signal processing applications. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will occur. The operation saturates results to prevent overflow, setting the VSCR.SAT flag if saturation occurs. This instruction operates on 128-bit vectors, so ensure proper alignment of vector registers for optimal performance.
Example
Encoding
Operands
-
VRT
Destination Vector Register -
VRA
Source Vector Register A -
VRB
Source Vector Register B -
VRC
Source Vector Register C