vpkudum
Vector Pack Unsigned Doubleword Modulo
Packs the upper halves of doublewords from two source vectors into a destination vector.
Details
The vpkudum instruction packs the upper halves of doublewords from VSR[VRA+32] and VSR[VRB+32] into VSR[VRT+32]. The contents of bits 32:63 of each doubleword element are placed into word elements of VSR[VRT+32].
Pseudocode Operation
Programming Note
This instruction is used for packing the upper halves of doublewords from two source vectors into a destination vector. Ensure that the Vector Facility (VEC) bit in the Machine State Register (MSR) is set; otherwise, a Vector Unavailable exception will be raised. The operation processes each element independently, so there are no ordering requirements between elements, but alignment of input vectors to doubleword boundaries is recommended for optimal performance.
Example
Encoding
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register