_mm512_mask_extracti64x4_epi64
Classification
AVX-512, Swizzle, CPUID Test: AVX512F
Header File
Instruction
VEXTRACTI64X4 ymm {k}, zmm, imm8
Synopsis
_mm512_mask_extracti64x4_epi64(__m256i src, __mmask8 k, __m512i a, int imm8);
Description
Extract 256 bits (composed of 4 packed 64-bit integers) from "a", selected with "imm8", and store the results in "dst" using writemask "k" (elements are copied from "src" when the corresponding mask bit is not set).
Operation
CASE imm8[0] OF
0: tmp[255:0] := a[255:0]
1: tmp[255:0] := a[511:256]
ESAC
FOR j := 0 to 3
i := j*64
IF k[j]
dst[i+63:i] := tmp[i+63:i]
ELSE
dst[i+63:i] := src[i+63:i]
FI
ENDFOR
dst[MAX:256] := 0