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 />

PCMPGTW<br />

Packed Compare Greater Than Signed Words<br />

Compares corresponding packed signed 16-bit values in the first and second source<br />

operands and writes the result of each comparison in the corresponding 16 bits of the<br />

destination (first source). For each pair of words, if the value in the first source<br />

operand is greater than the value in the second source operand, the result is all 1s. If<br />

the value in the first source operand is less than or equal to the value in the second<br />

source operand, the result is all 0s. The first source/destination operand is an XMM<br />

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

location.<br />

Mnemonic Opcode Description<br />

PCMPGTW xmm1, xmm2/mem128 66 0F 65 /r Compares packed signed 16-bit values in an XMM register<br />

and an XMM register or 128-bit memory location.<br />

xmm1<br />

. . . . . .<br />

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

. . . . . .<br />

compare<br />

all 1s or 0s<br />

xmm2/mem128<br />

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

. . . . . .<br />

compare<br />

all 1s or 0s<br />

pcmpgtw-128.eps<br />

Related Instructions<br />

PCMPEQB, PCMPEQD, PCMPEQW, PCMPGTB, PCMPGTD<br />

rFLAGS Affected<br />

None<br />

MXCSR Flags Affected<br />

None<br />

PCMPGTW 245

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

Saved successfully!

Ooh no, something went wrong!