3-589
INSTRUCTION SET REFERENCE
PXORLogical Exclusive OR
Description
This instruction performs a bitwise logical exclusive-OR (XOR) operation on the quadword
source (second) and destination (first) operands and stores the result in the destination operand
location (refer to Figure 3-85). The source operand can be an MMX technology register or a
quadword memory location; the destination operand must be an MMX technology register.
Each bit of the result is 1 if the corresponding bits of the two operands are different; each bit is
0 if the corresponding bits of the operands are the same.
Operation
DEST
<
DEST XOR SRC;
Intel C/C++ Compiler Intrinsic Equivalent
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_pxor(__m64 m1, __m64 m2)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_xor_si64(__m64 m1, __m64 m2)
Perform a bitwise XOR of the 64-bit value in m1 with the 64-bit value in m2.
Opcode
Instruction
Description
0F EF /r
PXOR mm, mm/m64XOR quadword from mm/m64 to quadword in
mm.
Figure 3-85. Operation of the PXOR Instruction
PXOR mm, mm/m64
mm
mm/m64
mm
1111111111111000000000000000010110110101100010000111011101110111
0001000011011001010100000011000100011110111011110001010110010101
1110111100100001010100000011010010101011011001110110001011100010
3006033
^