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.

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

PCMPGTW 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 <strong>128</strong>-bit memory<br />

location.<br />

Mnemonic Opcode Description<br />

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

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

Related Instructions<br />

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

rFLAGS Affected<br />

None<br />

MXCSR Flags Affected<br />

None<br />

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

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

246 PCMPGTW<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-<strong>128</strong>.eps

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

Saved successfully!

Ooh no, something went wrong!