Intel 64 and IA-32 Architectures Software Developers Manual Volume 2B, Instruction Set Reference, N-Z
4-108 Vol. 2B
INSTRUCTION SET REFERENCE, N-Z
PMOVMSKB instruction with 64-bit source operand and r64:
r64[0] ← SRC[7];
r64[1] ← SRC[15];
(* Repeat operation for bytes 2 through 6 *)
r64[7] ← SRC[63];
r64[63:8] ← ZERO_FILL;
PMOVMSKB instruction with 128-bit source operand and r64:
r64[0] ← SRC[7];
r64[1] ← SRC[15];
(* Repeat operation for bytes 2 through 14 *)
r64[15] ← SRC[127];
r64[63:16] ← ZERO_FILL;
Intel C/C++ Compiler Intrinsic Equivalent
PMOVMSKB int_mm_movemask_pi8(__m64 a)
PMOVMSKB int _mm_movemask_epi8 ( __m128i a)
Flags Affected
None.
Numeric Exceptions
None.
Protected Mode Exceptions
#UD If CR0.EM[bit 2] = 1.
(128-bit operations only) If CR4.OSFXSR[bit 9] = 0.
(128-bit operations only) If CPUID.01H:EDX.SSE2[bit 26] = 0.
#NM If CR0.TS[bit 3] = 1.
#MF (64-bit operations only) If there is a pending x87 FPU exception.
Real-Address Mode Exceptions
Same exceptions as in Protected Mode.
Virtual-8086 Mode Exceptions
Same exceptions as in Protected Mode.