Opcode |
Instruction |
Description |
---|---|---|
0F D7 /r |
PMOVMSKB r32, mm |
Move the byte mask of mm to r32. |
66 0F D7 /r |
PMOVMSKB r32, xmm |
Move the byte mask of xmm to r32. |
Creates an 8-bit mask made up of the most significant bit of each byte
of the source operand (second operand) and stores the result in the low
byte or word of the destination operand (first operand). The source operand
is an MMX
PMOVMSKB instruction with 64-bit source operand:
r32[0] SRC[7];
r32[1] SRC[15];
* repeat operation for bytes 2 through 6;
r32[7] SRC[63];
r32[31-8] 000000H;
PMOVMSKB instruction with 128-bit source operand:
r32[0] SRC[7];
r32[1] SRC[15];
* repeat operation for bytes 2 through 14;
r32[15] SRC[127];
r32[31-16] 0000H;
PMOVMSKB int_mm_movemask_pi8(__m64 a)
PMOVMSKB int _mm_movemask_epi8 ( __m128i a)
None.
#UD 0 - If EM in CR0 is set. (128-bit operations only.) If OSFXSR in CR4 is 0. (128-bit operations only.) If CPUID feature flag SSE-2 is 0.
#NM - If TS in CR0 is set.
#MF (64-bit operations only.) - If there is a pending x87 FPU exception.
Same exceptions as in Protected Mode.
Same exceptions as in Protected Mode.
None.
None.
For details, see Volume 2A and Volume 2B of the Intel(R) 64 and IA-32 Intel Architecture Software Developer's Manual. For the latest updates on the instruction set information, go to the web site.