Visible to Intel only — GUID: GUID-365F2739-4156-449A-8F1B-E682D26B641E
Visible to Intel only — GUID: GUID-365F2739-4156-449A-8F1B-E682D26B641E
_mm256_testc_pd, _mm_testc_pd
Performs a packed bit test of two 256-bit or 128-bit float64 vectors to set the CF flag. The corresponding Intel® AVX instruction is VTESTPD.
Syntax
extern int _mm256_testc_pd(__m256d s1, __m256d s2); |
extern int _mm_testc_pd(__m128d s1, __m128d s2); |
Arguments
s1 |
first source float64 vector |
s2 |
second source float64 vector |
Description
Compute the bitwise AND of the two vectors s1 and s2, representing double-precision (64-bit) floating-point elements, producing an intermediate value, and set ZF to 1 if the sign bit of each 64-bit element in the intermediate value is zero, otherwise set ZF to 0. Compute the bitwise AND NOT of s1 and s2, producing an intermediate value, and set CF to 1 if the sign bit of each 64-bit element in the intermediate value is zero, otherwise set CF to 0. Return the CF value.
Intel® Advanced Vector Extensions (Intel® AVX) instructions include a full compliment of 128-bit SIMD instructions. Such Intel® AVX instructions, with vector length of 128-bits, zeroes the upper 128 bits of the YMM register. The lower 128 bits of the YMM register is aliased to the corresponding SIMD XMM register.
Returns
Non-zero if CF flag is set
Zero if the CF flag is not set