vmulosh
Vector Multiply Odd Signed Halfword
Multiplies odd signed halfwords to words.
Details
The Vector Multiply Odd Signed Halfword instruction multiplies each pair of odd-numbered signed halfwords from two source vectors and stores the results as words in a destination vector. The operation is performed for each integer value i from 0 to 3.
Pseudocode Operation
Programming Note
This instruction is useful for performing element-wise multiplication of odd-numbered signed halfwords from two vectors. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The result is stored as 32-bit words in the destination vector, so ensure proper alignment and size of the vectors to avoid unexpected behavior.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B