_mm512_bitshuffle_epi64_mask
Classification
AVX-512, Bit Manipulation, CPUID Test: AVX512_BITALG
Header File
Instruction
VPSHUFBITQMB k, zmm, zmm
Synopsis
_mm512_bitshuffle_epi64_mask(__m512i b, __m512i c);
Description
Gather 64 bits from "b" using selection bits in "c". For each 64-bit element in "b", gather 8 bits from the 64-bit element in "b" at 8 bit position controlled by the 8 corresponding 8-bit elements of "c", and store the result in the corresponding 8-bit element of "dst".
Operation
FOR i := 0 to 7 //Qword
FOR j := 0 to 7 // Byte
m := c.qword[i].byte[j] & 0x3F
dst[i*8+j] := b.qword[i].bit[m]
ENDFOR
ENDFOR
dst[MAX:64] := 0