3-520
INSTRUCTION SET REFERENCE
PMOVMSKB—Move Byte Mask To Integer
Description
The PMOVMSKB instruction returns an 8-bit mask formed of the most significant bits of each
byte of its source operand.
Figure 3-70. Operation of the PMOVMSKB Instruction
Operation
r32[7] = SRC[63]; r32[6] = SRC[55];
r32[5] = SRC[47]; r32[4] = SRC[39];
r32[3] = SRC[31]; r32[2] = SRC[23];
r32[1] = SRC[15]; r32[0] = SRC[7];
r32[31-8] = 0X000000;
Intel C/C++ Compiler Intrinsic Equivalent
Pre-4.0 Intel C/C++ Compiler intrinsic:
int_m_pmovmskb(__m64 a)
Version 4.0 and later Intel C/C++ Compiler intrinsic:
int_mm_movemask_pi8(__m64 a)
Creates an 8-bit mask from the most significant bits of the bytes in a.
Opcode
Instruction
Description
0F,D7,/r
PMOVMSKB r32, mm
Move the byte mask of MM to r32.
PMOVMSKB r32, mm1
mm1
R32
R32
=