vmulesw
Vector Multiply Even Signed Word
vmulesw vD, vA, vB
Multiplies even-indexed signed words from two vector registers and stores the results in a destination vector register.
Details
For vmulesw, each pair of even-indexed signed words from VSR[VRA+32] and VSR[VRB+32] are multiplied, and the 64-bit products are stored in VSR[VRT+32].
Pseudocode Operation
Programming Note
This instruction multiplies even-indexed signed words from two vector registers and stores the 64-bit products in another register. Ensure that the Vector Facility is enabled by checking and setting the VEC bit in the MSR register. Be cautious of overflow, as the multiplication results are truncated to 64 bits.
Example
vmulesw vd, va, vb
Encoding
Binary Layout
4
0
vD
6
vA
11
vB
16
392
Operands
-
vD
Target -
vA
Src A -
vB
Src B -
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register