vmulosb
Vector Multiply Odd Signed Byte
Multiplies odd signed bytes to halfwords.
Details
The Vector Multiply Odd Signed Byte instruction multiplies each odd-numbered byte (1st, 3rd, 5th, and 7th bytes) of the elements in two vector registers VRA and VRB. The results are stored as signed halfwords in the corresponding positions of the destination vector register VRT.
Pseudocode Operation
Programming Note
This instruction is useful for performing element-wise multiplication of odd-numbered bytes from two vectors, storing the results as signed halfwords. Ensure that the Vector Facility (MSR.VEC) is enabled; otherwise, a Vector_Unavailable exception will be raised. The operation respects byte ordering, so developers must ensure proper alignment and data format to avoid unexpected results.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B