09.01.2013 Views

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

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.

26568—Rev. 3.05—September 2003 <strong>AMD</strong><strong>64</strong> Technology<br />

PUNPCKHWD Unpack and Interleave High Words<br />

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

them into interleaved words in the destination (first source). The low-order words of<br />

the source operands are ignored. The first source/destination operand is an XMM<br />

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

location.<br />

Mnemonic Opcode Description<br />

PUNPCKHWD xmm1, xmm2/mem<strong>128</strong> 66 0F 69 /r Unpacks four high-order words in an XMM register and<br />

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

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

register.<br />

127 112 111 96 95 80 79 <strong>64</strong> 63 0<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 />

xmm1 xmm2/mem<strong>128</strong><br />

. .<br />

. .<br />

copy copy copy<br />

copy<br />

. . . .<br />

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

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

127 112 111 96 95 80 79 <strong>64</strong> 63 0<br />

punpckhwd-<strong>128</strong>.eps<br />

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

PUNPCKLQDQ, PUNPCKLWD<br />

PUNPCKHWD 331

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

Saved successfully!

Ooh no, something went wrong!