_mm256_mask_extractf64x2_pd
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512DQ
Header File
Instruction
VEXTRACTF64X2 xmm {k}, ymm, imm8
Synopsis
_mm256_mask_extractf64x2_pd(__m128d src, __mmask8 k, __m256d a, int imm8);
Description
Extract 128 bits (composed of 2 packed double-precision (64-bit) floating-point elements) 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[127:0] := a[127:0]
1: tmp[127:0] := a[255:128]
ESAC
FOR j := 0 to 1
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:128] := 0