_mm256_mask_conflict_epi32
Classification
AVX-512, Compare, CPUID Test: AVX512CD
Header File
immintrin.h
Instruction
VPCONFLICTD ymm {k}, ymm
Synopsis
 _mm256_mask_conflict_epi32(__m256i src, __mmask8 k, __m256i a);
Description
Test each 32-bit element of "a" for equality with all other elements in "a" closer to the least significant bit using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set). Each element's comparison forms a zero extended bit vector in "dst".
Operation
FOR j := 0 to 7
	i := j*32
	IF k[j]
		FOR l := 0 to j-1
			m := l*32
			dst[i+l] := (a[i+31:i] == a[m+31:m]) ? 1 : 0
		ENDFOR
		dst[i+31:i+j] := 0
	ELSE
		dst[i+31:i] := src[i+31:i]
	FI
ENDFOR
dst[MAX:256] := 0