_mm256_maskz_alignr_epi32
Classification
AVX-512, Miscellaneous, CPUID Test: AVX512F
Header File
Instruction
VALIGND ymm {z}, ymm, ymm, imm8
Synopsis
_mm256_maskz_alignr_epi32(__mmask8 k, __m256i a, __m256i b, const int imm8);
Description
Concatenate "a" and "b" into a 64-byte immediate result, shift the result right by "imm8" 32-bit elements, and store the low 32 bytes (8 elements) in "dst" using zeromask "k" (elements are zeroed out when the corresponding mask bit is not set).
Operation
temp[511:256] := a[255:0]
temp[255:0] := b[255:0]
temp[511:0] := temp[511:0] >> (32*imm8[2:0])
FOR j := 0 to 7
i := j*32
IF k[j]
dst[i+31:i] := temp[i+31:i]
ELSE
dst[i+31:i] := 0
FI
ENDFOR
dst[MAX:256] := 0