25.02.2015 Views

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

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>AMD</strong> <strong>64</strong>-<strong>Bit</strong> <strong>Technology</strong> 26568—Rev. 3.02—August 2002<br />

PUNPCKLWD<br />

Unpack and Interleave Low Words<br />

Unpacks the low-order words from the first and second source operands and packs<br />

them into interleaved-word doublewords in the destination (first source). The highorder<br />

words of the source operands are ignored. The first source/destination operand<br />

is an XMM register and the second source operand is another XMM register or 128-bit<br />

memory location.<br />

Mnemonic Opcode Description<br />

PUNPCKLWD xmm1, xmm2/mem128 66 0F 61 /r Unpacks the four low-order words in an XMM register and<br />

another XMM register or 128-bit memory location and packs<br />

them into interleaved words in the destination XMM<br />

register.<br />

xmm1<br />

xmm2/mem128<br />

127 <strong>64</strong> 63 48 47 32 31 16 15 0<br />

127 <strong>64</strong> 63 48 47 32 31 16 15 0<br />

copy<br />

. .<br />

copy<br />

copy<br />

. .<br />

copy<br />

. .<br />

. .<br />

. . . . . . . . . . . .<br />

127 112 111 96 95 80 79 <strong>64</strong> 63 48 47 32 31 16 15 0<br />

punpcklwd-128.eps<br />

If the second source operand is all 0s, the destination contains the words from the first<br />

source operand zero-extended to 32 bits. This operation is useful for expanding<br />

unsigned 16-bit values to unsigned 32-bit operands for subsequent processing that<br />

requires higher precision.<br />

Related Instructions<br />

PUNPCKHBW, PUNPCKHDQ, PUNPCKHQDQ, PUNPCKHWD, PUNPCKLBW,<br />

PUNPCKLDQ, PUNPCKLQDQ<br />

338 PUNPCKLWD

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

Saved successfully!

Ooh no, something went wrong!