14.06.2015 Views

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

Power ISA™ Version 2.03 - Power.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Version</strong> <strong>2.03</strong><br />

Vector Unpack Low Pixel<br />

VX-form<br />

Vector Unpack Low Signed Byte VX-form<br />

vupklpx<br />

VRT,VRB<br />

vupklsb<br />

VRT,VRB<br />

4 VRT /// VRB 974<br />

0 6 11 16 21 31<br />

do i=0 to 63 by 16<br />

VRT i×2:i×2+7 EXTS((VRB) i+64 )<br />

VRT i×2+8:i×2+15 EXTZ((VRB) i+65:i+69 )<br />

VRT i×2+16:i×2+23 EXTZ((VRB) i+70:i+74 )<br />

VRT i×2+24:i×2+31 EXTZ((VRB) i+75:i+79 )<br />

For each vector element i from 0 to 3, do the following.<br />

Halfword element i+4 in VRB is unpacked as follows.<br />

- sign-extend bit 0 of the halfword to 8 bits<br />

- zero-extend bits 1:5 of the halfword to 8 bits<br />

- zero-extend bits 6:10 of the halfword to 8 bits<br />

- zero-extend bits 11:15 of the halfword to 8 bits<br />

The result is placed in word element i of VRT.<br />

Special Registers Altered:<br />

None<br />

do i=0 to 63 by 8<br />

VRT i×2:i×2+15 EXTS((VRB) i+64:i+71 )<br />

For each vector element i from 0 to 7, do the following.<br />

Signed-integer byte element i+8 in VRB is<br />

sign-extended to produce a signed-integer halfword<br />

and placed into halfword element i in VRT.<br />

Special Registers Altered:<br />

None<br />

Vector Unpack Low Signed Halfword<br />

VX-form<br />

vupklsh<br />

4 VRT /// VRB 654<br />

0 6 11 16 21 31<br />

VRT,VRB<br />

4 VRT /// VRB 718<br />

0 6 11 16 21 31<br />

do i=0 to 63 by 16<br />

VRT i×2:i×2+31 EXTS((VRB) i+64:i+79 )<br />

For each vector element i from 0 to 3, do the following.<br />

Signed-integer halfword element i+4 in VRB is<br />

sign-extended to produce a signed-integer word<br />

and placed into word element i in VRT.<br />

Special Registers Altered:<br />

None<br />

148<br />

<strong>Power</strong> ISA -- Book I

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!