vupkhsw

Vector Unpack High Signed Word

vupkhsw VRT,VRB

Unpacks the high signed words from a vector register into a doubleword format.

Details

The Vector Unpack High Signed Word instruction unpacks the high signed word from each vector element of VRB and places it into the corresponding doubleword element of VRT.

Pseudocode Operation

if MSR.VEC=0 then
    Vector_Unavailable()
for each integer value i from 0 to 1, do the following.
    VSR[VRT+32].dword[i] ←EXTS64(VSR[VRB+32].word[i])

Programming Note

This instruction is used to extract the high signed word from each vector element of VRB and store it in the corresponding doubleword element of VRT. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector Unavailable exception will be raised. The operation is performed on 32-bit elements, so alignment requirements are based on these boundaries.

Example

vupkhsw v1, v3

Encoding

Binary Layout
0
0
VRT
6
VRB
11
0
31
0
0
0
0
0
0
0
0
0
0
0
0
 
Format VX-form
Opcode 0x1000064E
Extension VMX (AltiVec)
Registers Altered None

Operands

  • VRT
    Target Vector Register
  • VRB
    Source Vector Register