Opcode/Instruction | Op/En | 64/32 bit Mode Support | CPUID Feature Flag | Description |
---|---|---|---|---|
EVEX.128.66.0F38.W0 93 /vsib VGATHERQPS xmm1 {k1}, vm64x |
T1S | V/V |
AVX512VL AVX512F |
Using signed qword indices, gather single-precision floating-point values from memory using k1 as completion mask. |
EVEX.256.66.0F38.W0 93 /vsib VGATHERQPS xmm1 {k1}, vm64y |
T1S | V/V |
AVX512VL AVX512F |
Using signed qword indices, gather single-precision floating-point values from memory using k1 as completion mask. |
EVEX.512.66.0F38.W0 93 /vsib VGATHERQPS ymm1 {k1}, vm64z |
T1S | V/V | AVX512F | Using signed qword indices, gather single-precision floating-point values from memory using k1 as completion mask. |
EVEX.128.66.0F38.W1 93 /vsib VGATHERQPD xmm1 {k1}, vm64x |
T1S | V/V |
AVX512VL AVX512F |
Using signed qword indices, gather float64 vector into float64 vector xmm1 using k1 as completion mask. |
EVEX.256.66.0F38.W1 93 /vsib VGATHERQPD ymm1 {k1}, vm64y |
T1S | V/V |
AVX512VL AVX512F |
Using signed qword indices, gather float64 vector into float64 vector ymm1 using k1 as completion mask. |
EVEX.512.66.0F38.W1 93 /vsib VGATHERQPD zmm1 {k1}, vm64z |
T1S | V/V | AVX512F | Using signed qword indices, gather float64 vector into float64 vector zmm1 using k1 as completion mask. |
Op/En T1S |
Operand 1 ModRM:reg (w) |
Operand 2 BaseReg (R): VSIB:base, VectorReg(R): VSIB:index |
Operand 3 NA |
Operand 4 NA |
A set of 8 single-precision/double-precision faulting-point memory locations pointed by base address BASE_ADDR and index vector V_INDEX with scale SCALE are gathered. The result is written into vector a register. The elements are specified via the VSIB (i.e., the index register is a vector register, holding packed indices). Elements will only be loaded if their corresponding mask bit is one. If an element’s mask bit is not set, the corresponding element of the destination register is left unchanged. The entire mask register will be set to zero by this instruction unless it trig-gers an exception.
This instruction can be suspended by an exception if at least one element is already gathered (i.e., if the exception is triggered by an element other than the rightmost one with its mask bit set). When this happens, the destination register and the mask register (k1) are partially updated; those elements that have been gathered are placed into the destination register and have their mask bits set to zero. If any traps or interrupts are pending from already gathered elements, they will be delivered in lieu of the exception; in this case, EFLAG.RF is set to one so an instruc-tion breakpoint is not re-triggered when the instruction is continued.
If the data element size is less than the index element size, the higher part of the destination register and the mask register do not correspond to any elements being gathered. This instruction sets those higher parts to zero. It may update these unused elements to one or both of those registers even if the instruction triggers an exception, and even if the instruction triggers the exception before gathering any elements.
Note that:
Note that the presence of VSIB byte is enforced in this instruction. Hence, the instruction will #UD fault if ModRM.rm is different than 100b.
This instruction has special disp8*N and alignment rules. N is considered to be the size of a single vector element.
The scaled index may require more bits to represent than the address bits used by the processor (e.g., in 32-bit mode, if the scale is greater than one). In this case, the most significant bits beyond the number of address bits are ignored.
The instruction will #UD fault if the destination vector zmm1 is the same as index vector VINDEX. The instruction will #UD fault if the k0 mask register is specified.
BASE_ADDR stands for the memory operand base address (a GPR); may not exist VINDEX stands for the memory operand vector of indices (a ZMM register) SCALE stands for the memory operand scalar (1, 2, 4 or 8) DISP is the optional 1, 2 or 4 byte displacementVGATHERQPS (EVEX encoded version)
(KL, VL) = (2, 64), (4, 128), (8, 256) FOR j (cid:197) 0 TO KL-1 i (cid:197) j * 32 k (cid:197) j * 64 IF k1[j] OR *no writemask* THEN DEST[i+31:i] (cid:197) MEM[BASE_ADDR + (VINDEX[k+63:k]) * SCALE + DISP] k1[j] (cid:197) 0 ELSE *DEST[i+31:i] (cid:197) remains unchanged* FI; ENDFOR k1[MAX_KL-1:KL] (cid:197) 0 DEST[MAX_VL-1:VL/2] (cid:197) 0VGATHERQPD (EVEX encoded version)
(KL, VL) = (2, 128), (4, 256), (8, 512) FOR j (cid:197) 0 TO KL-1 i (cid:197) j * 64 IF k1[j] OR *no writemask* THEN DEST[i+63:i] (cid:197) MEM[BASE_ADDR + (VINDEX[i+63:i]) * SCALE + DISP] k1[j] (cid:197) 0 ELSE *DEST[i+63:i] (cid:197) remains unchanged* FI; ENDFOR k1[MAX_KL-1:KL] (cid:197) 0 DEST[MAX_VL-1:VL] (cid:197) 0
VGATHERQPD __m512d _mm512_i64gather_pd( __m512i vdx, void * base, int scale); VGATHERQPD __m512d _mm512_mask_i64gather_pd(__m512d s, __mmask8 k, __m512i vdx, void * base, int scale); VGATHERQPD __m256d _mm256_mask_i64gather_pd(__m256d s, __mmask8 k, __m256i vdx, void * base, int scale); VGATHERQPD __m128d _mm_mask_i64gather_pd(__m128d s, __mmask8 k, __m128i vdx, void * base, int scale); VGATHERQPS __m256 _mm512_i64gather_ps( __m512i vdx, void * base, int scale); VGATHERQPS __m256 _mm512_mask_i64gather_ps(__m256 s, __mmask16 k, __m512i vdx, void * base, int scale); VGATHERQPS __m128 _mm256_mask_i64gather_ps(__m128 s, __mmask8 k, __m256i vdx, void * base, int scale); VGATHERQPS __m128 _mm_mask_i64gather_ps(__m128 s, __mmask8 k, __m128i vdx, void * base, int scale);
None
See Exceptions Type E12.