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

Create successful ePaper yourself

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

26568—Rev. 3.02—August 2002<br />

<strong>AMD</strong> <strong>64</strong>-<strong>Bit</strong> <strong>Technology</strong><br />

PSLLW<br />

Packed Shift Left Logical Words<br />

Left-shifts each of the packed 16-bit values in the first source operand by the number<br />

of bits specified in the second source operand and writes each shifted value in the<br />

corresponding word of the destination (first source). The first source/destination and<br />

second source operands are:<br />

„ an XMM register and another XMM register or 128-bit memory location, or<br />

„ an XMM register and an immediate byte value<br />

The low-order bits that are emptied by the shift operation are cleared to 0. If the shift<br />

value is greater than 15, the destination is cleared to all 0s.<br />

Mnemonic Opcode Description<br />

PSLLW xmm1, xmm2/mem128 66 0F F1 /r Left-shifts packed words in an XMM register by the amount<br />

specified in the low <strong>64</strong> bits of an XMM register or 128-bit<br />

memory location.<br />

PSLLW xmm, imm8 66 0F 71 /6 ib Left-shifts packed words in an XMM register by the amount<br />

specified in an immediate byte value.<br />

xmm1<br />

. . . .<br />

. .<br />

xmm2/mem128<br />

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

shift left<br />

. . . .<br />

. .<br />

shift left<br />

xmm<br />

. . . . . .<br />

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

imm8<br />

7 0<br />

shift left<br />

. . . .<br />

. .<br />

shift left<br />

psllw-128.eps<br />

PSLLW 291

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

Saved successfully!

Ooh no, something went wrong!