unpack
Instruction Type I
Format
(qp) unpack1.h r1 = r2, r3 one_byte_form, high_form
(qp) unpack2.h r1 = r2, r3 two_byte_form, high_form
(qp) unpack4.h r1 = r2, r3 four_byte_form, high_form
(qp) r1 = r2, r3 one_byte_form, low_form
(qp) unpack2.l r1 = r2, r3 two_byte_form, low_form
(qp) unpack4.l r1 = r2, r3 four_byte_form, low_form
Description
The data elements of GR r2 and r3 are unpacked, and the result placed in GR r1. In the high_form, the most significant elements of each source register are selected, while in the low_form the least significant elements of each source register are selected. Elements are selected alternately from the source registers.
Click to see examples of all forms of the pack instruction in one illustration.