_mm_testnzc_si128
Classification
SSE_ALL, Logical, CPUID Test: SSE4.1
Header File
Instruction
PTEST xmm, xmm
Synopsis
_mm_testnzc_si128(__m128i a, __m128i b);
Description
Compute the bitwise AND of 128 bits (representing integer data) in "a" and "b", and set "ZF" to 1 if the result is zero, otherwise set "ZF" to 0. Compute the bitwise NOT of "a" and then AND with "b", and set "CF" to 1 if the result is zero, otherwise set "CF" to 0. Return 1 if both the "ZF" and "CF" values are zero, otherwise return 0.
Operation
IF ((a[127:0] AND b[127:0]) == 0)
ZF := 1
ELSE
ZF := 0
FI
IF (((NOT a[127:0]) AND b[127:0]) == 0)
CF := 1
ELSE
CF := 0
FI
IF (ZF == 0 && CF == 0)
dst := 1
ELSE
dst := 0
FI