3-485
INSTRUCTION SET REFERENCE
PANDLogical AND
Description
This instruction performs a bitwise logical AND operation on the quadword source (second) and
destination (first) operands and stores the result in the destination operand location (refer to
Figure 3-58). 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
of the PAND instruction is set to 1 if the corresponding bits of the operands are both 1; otherwise
it is made zero
Operation
DEST
<
DEST AND SRC;
Intel C/C++ Compiler Intrinsic Equivalent
Pre-4.0 Intel C/C++ Compiler intrinsic:
__m64 _m_pand(__m64 m1, __m64 m2)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
__m64 _mm_and_si64(__m64 m1, __m64 m2)
Perform a bitwise AND of the 64-bit value in m1 with the 64-bit value in m2.
Flags Affected
None.
Opcode
Instruction
Description
0F DB /r
PAND mm, mm/m64AND quadword from mm/m64 to quadword in mm.
Figure 3-58. Operation of the PAND Instruction
PAND mm, mm/m64
mm
mm/m64
mm
1111111111111000000000000000010110110101100010000111011101110111
0001000011011001010100000011000100011110111011110001010110010101
0001000011011000000000000000000100010100100010000001010100010101
3006019
&