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

PCMPEQB Packed Compare Equal Bytes<br />

Compares corresponding packed bytes in the first and second source operands and<br />

writes the result of each comparison in the corresponding byte of the destination (first<br />

source). For each pair of bytes, if the values are equal, the result is all 1s. If the values<br />

are not equal, 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 />

PCMPEQB xmm1, xmm2/mem<strong>128</strong> 66 0F 74 /r Compares packed bytes in an XMM register and an XMM<br />

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

Related Instructions<br />

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

rFLAGS Affected<br />

None<br />

MXCSR Flags Affected<br />

None<br />

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

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

127 0 127 0<br />

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

compare<br />

all 1s or 0s<br />

236 PCMPEQB<br />

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

compare<br />

all 1s or 0s<br />

pcmpeqb-<strong>128</strong>.eps

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

Saved successfully!

Ooh no, something went wrong!