image/svg+xmlVCOMPRESSPD—Store Sparse Packed Double-Precision Floating-Point Values into Dense MemoryInstruction Operand EncodingDescription Compress (store) up to 8 double-precision floating-point values from the source operand (the second operand) as a contiguous vector to the destination operand (the first operand) The source operand is a ZMM/YMM/XMM register, the destination operand can be a ZMM/YMM/XMM register or a 512/256/128-bit memory location.The opmask register k1 selects the active elements (partial vector or possibly non-contiguous if less than 8 active elements) from the source operand to compress into a contiguous vector. The contiguous vector is written to the destination starting from the low element of the destination operand.Memory destination version: Only the contiguous vector is written to the destination memory location. EVEX.z must be zero.Register destination version: If the vector length of the contiguous vector is less than that of the input vector in the source operand, the upper bits of the destination register are unmodified if EVEX.z is not set, otherwise the upper bits are zeroed.EVEX.vvvv is reserved and must be 1111b otherwise instructions will #UD.Note that the compressed displacement assumes a pre-scaling (N) corresponding to the size of one single element instead of the size of the full vector.OperationVCOMPRESSPD (EVEX encoded versions) store form(KL, VL) = (2, 128), (4, 256), (8, 512)SIZE := 64k := 0FOR j := 0 TO KL-1i := j * 64IF k1[j] OR *no writemask*THEN DEST[k+SIZE-1:k] := SRC[i+63:i]k := k + SIZEFI;ENDFOROpcode/InstructionOp / En64/32 bit Mode SupportCPUID Feature FlagDescriptionEVEX.128.66.0F38.W1 8A /rVCOMPRESSPD xmm1/m128 {k1}{z}, xmm2AV/VAVX512VLAVX512FCompress packed double-precision floating-point values from xmm2 to xmm1/m128 using writemask k1.EVEX.256.66.0F38.W1 8A /rVCOMPRESSPD ymm1/m256 {k1}{z}, ymm2AV/VAVX512VLAVX512FCompress packed double-precision floating-point values from ymm2 to ymm1/m256 using writemask k1.EVEX.512.66.0F38.W1 8A /rVCOMPRESSPD zmm1/m512 {k1}{z}, zmm2AV/VAVX512FCompress packed double-precision floating-point values from zmm2 using control mask k1 to zmm1/m512.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4ATuple1 ScalarModRM:r/m (w)ModRM:reg (r)NANA

image/svg+xmlVCOMPRESSPD (EVEX encoded versions) reg-reg form(KL, VL) = (2, 128), (4, 256), (8, 512)SIZE := 64k := 0FOR j := 0 TO KL-1i := j * 64IF k1[j] OR *no writemask*THEN DEST[k+SIZE-1:k] := SRC[i+63:i]k := k + SIZEFI;ENDFORIF *merging-masking* THEN *DEST[VL-1:k] remains unchanged*ELSE DEST[VL-1:k] := 0FIDEST[MAXVL-1:VL] := 0Intel C/C++ Compiler Intrinsic EquivalentVCOMPRESSPD __m512d _mm512_mask_compress_pd( __m512d s, __mmask8 k, __m512d a);VCOMPRESSPD __m512d _mm512_maskz_compress_pd( __mmask8 k, __m512d a);VCOMPRESSPD void _mm512_mask_compressstoreu_pd( void * d, __mmask8 k, __m512d a);VCOMPRESSPD __m256d _mm256_mask_compress_pd( __m256d s, __mmask8 k, __m256d a);VCOMPRESSPD __m256d _mm256_maskz_compress_pd( __mmask8 k, __m256d a);VCOMPRESSPD void _mm256_mask_compressstoreu_pd( void * d, __mmask8 k, __m256d a);VCOMPRESSPD __m128d _mm_mask_compress_pd( __m128d s, __mmask8 k, __m128d a);VCOMPRESSPD __m128d _mm_maskz_compress_pd( __mmask8 k, __m128d a);VCOMPRESSPD void _mm_mask_compressstoreu_pd( void * d, __mmask8 k, __m128d a);SIMD Floating-Point ExceptionsNoneOther ExceptionsEVEX-encoded instructions, see Exceptions Type E4.nb in Table2-49, “Type E4 Class Exception Conditions”; additionally:#UD If EVEX.vvvv != 1111B.

This UNOFFICIAL reference was generated from the official Intel® 64 and IA-32 Architectures Software Developer’s Manual by a dumb script. There is no guarantee that some parts aren't mangled or broken and is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.