_mm512_maskz_insertf64x4
Classification
AVX-512, Swizzle, CPUID Test: AVX512F
Header File
Instruction
VINSERTF64X4 zmm {z}, zmm, ymm, imm8
Synopsis
_mm512_maskz_insertf64x4(__mmask8 k, __m512d a, __m256d b, int imm8);
Description
Copy "a" to "tmp", then insert 256 bits (composed of 4 packed double-precision (64-bit) floating-point elements) from "b" into "tmp" at the location specified by "imm8". Store "tmp" to "dst" using zeromask "k" (elements are zeroed out when the corresponding mask bit is not set).
Operation
tmp[511:0] := a[511:0]
CASE (imm8[0]) OF
0: tmp[255:0] := b[255:0]
1: tmp[511:256] := b[255:0]
ESAC
FOR j := 0 to 7
i := j*64
IF k[j]
dst[i+63:i] := tmp[i+63:i]
ELSE
dst[i+63:i] := 0
FI
ENDFOR
dst[MAX:512] := 0