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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

PSHUFLW Packed Shuffle Low Words<br />

Moves any one of the four packed words in the low-order quadword of an XMM<br />

register or <strong>128</strong>-bit memory location to each word in the low-order quadword of another<br />

XMM register. In each case, the selection of the value of the destination word is<br />

determined by a two-bit field in the immediate-byte operand, with bits 0 and 1<br />

selecting the contents of the low-order word, bits 2 and 3 selecting the second word,<br />

bits 4 and 5 selecting the third word, and bits 6 and 7 selecting the high-order word.<br />

Refer to Table 1-6 on page 284. A word in the source operand may be copied to more<br />

than one word in the destination. The high-order quadword of the source operand is<br />

copied to the high-order quadword of the destination register.<br />

Mnemonic Opcode Description<br />

PSHUFLW xmm1, xmm2/mem<strong>128</strong>, imm8 F2 0F 70 /r ib Shuffles packed 16-bit values in low-order<br />

quadword of an XMM register or <strong>128</strong>-bit<br />

memory location and puts the result in loworder<br />

quadword of another XMM register.<br />

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

127 <strong>64</strong> 63 48 47 32<br />

31 16 15 0<br />

imm8<br />

7 0<br />

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

pshuflw.eps<br />

PSHUFLW 283<br />

mux<br />

mux<br />

mux<br />

mux

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

Saved successfully!

Ooh no, something went wrong!