pack
Instruction Type I
Format
(qp) pack2.sss r1 = r2, r3 two_byte_form, signed_saturation_form
(qp) pack2.uss r1 = r2, r3 two_byte_form, unsigned_saturation_form
(qp) pack4.sss r1 = r2, r3 four_byte_form, signed_saturation_form
Description
32-bit or 16-bit elements from GR r2 and GR r3 are converted into 16-bit or 8-bit elements respectively, and the results are placed GR r1. The source elements are treated as signed values. If a source element cannot be represented in the result element, then saturation clipping is performed. The saturation can either be signed or unsigned. If an element is larger than the upper limit value, the result is the upper limit value. If it is smaller than the lower limit value, the result is the lower limit value. The pack saturation limits table shows the pack saturation limits.