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

PCMPEQB<br />

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

location.<br />

Mnemonic Opcode Description<br />

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

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

xmm1<br />

xmm2/mem128<br />

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

127 0 127 0<br />

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

compare<br />

all 1s or 0s<br />

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

compare<br />

all 1s or 0s<br />

pcmpeqb-128.eps<br />

Related Instructions<br />

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

rFLAGS Affected<br />

None<br />

MXCSR Flags Affected<br />

None<br />

PCMPEQB 235

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

Saved successfully!

Ooh no, something went wrong!