image/svg+xmlVSCALEFPD—Scale Packed Float64 Values With Float64 ValuesInstruction Operand EncodingDescriptionPerforms a floating-point scale of the packed double-precision floating-point values in the first source operand by multiplying it by 2 power of the double-precision floating-point values in second source operand.The equation of this operation is given by:zmm1 := zmm2*2floor(zmm3).Floor(zmm3) means maximum integer value zmm3.If the result cannot be represented in double precision, then the proper overflow response (for positive scaling operand), or the proper underflow response (for negative scaling operand) is issued. The overflow and underflow responses are dependent on the rounding mode (for IEEE-compliant rounding), as well as on other settings in MXCSR (exception mask bits, FTZ bit), and on the SAE bit.The first source operand is a ZMM/YMM/XMM register. The second source operand is a ZMM/YMM/XMM register, a 512/256/128-bit memory location or a 512/256/128-bit vector broadcasted from a 64-bit memory location. The destination operand is a ZMM/YMM/XMM register conditionally updated with writemask k1.Handling of special-case input values are listed in Table 5-21 and Table 5-22.Table 5-21. VSCALEFPD/SD/PS/SS Special CasesOpcode/InstructionOp / En64/32 bit Mode SupportCPUID Feature FlagDescriptionEVEX.128.66.0F38.W1 2C /r VSCALEFPD xmm1 {k1}{z}, xmm2, xmm3/m128/m64bcstAV/VAVX512VLAVX512FScale the packed double-precision floating-point values in xmm2 using values from xmm3/m128/m64bcst. Under writemask k1.EVEX.256.66.0F38.W1 2C /r VSCALEFPD ymm1 {k1}{z}, ymm2, ymm3/m256/m64bcstAV/VAVX512VLAVX512FScale the packed double-precision floating-point values in ymm2 using values from ymm3/m256/m64bcst. Under writemask k1.EVEX.512.66.0F38.W1 2C /r VSCALEFPD zmm1 {k1}{z}, zmm2, zmm3/m512/m64bcst{er}AV/VAVX512FScale the packed double-precision floating-point values in zmm2 using values from zmm3/m512/m64bcst. Under writemask k1.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4AFullModRM:reg (w)EVEX.vvvv (r)ModRM:r/m (r)NASrc2Set IE±NaN+Inf-Inf0/Denorm/NormSrc1±QNaNQNaN(Src1)+INF+0QNaN(Src1)IF either source is SNAN±SNaNQNaN(Src1)QNaN(Src1)QNaN(Src1)QNaN(Src1)YES±InfQNaN(Src2)Src1QNaN_IndefiniteSrc1IF Src2 is SNAN or -INF±0QNaN(Src2)QNaN_IndefiniteSrc1Src1IF Src2 is SNAN or +INFDenorm/NormQNaN(Src2)±INF (Src1 sign)±0 (Src1 sign)Compute ResultIF Src2 is SNAN

image/svg+xmlOperationSCALE(SRC1, SRC2){TMP_SRC2 := SRC2TMP_SRC1 := SRC1IF (SRC2 is denormal AND MXCSR.DAZ) THEN TMP_SRC2=0IF (SRC1 is denormal AND MXCSR.DAZ) THEN TMP_SRC1=0/* SRC2 is a 64 bits floating-point value */DEST[63:0] := TMP_SRC1[63:0] * POW(2, Floor(TMP_SRC2[63:0]))}VSCALEFPD (EVEX encoded versions)(KL, VL) = (2, 128), (4, 256), (8, 512)IF (VL = 512) AND (EVEX.b = 1) AND (SRC2 *is register*)THENSET_ROUNDING_MODE_FOR_THIS_INSTRUCTION(EVEX.RC);ELSE SET_ROUNDING_MODE_FOR_THIS_INSTRUCTION(MXCSR.RC);FI;FOR j := 0 TO KL-1i := j * 64IF k1[j] OR *no writemask* THENIF (EVEX.b = 1) AND (SRC2 *is memory*)THEN DEST[i+63:i] := SCALE(SRC1[i+63:i], SRC2[63:0]);ELSE DEST[i+63:i] := SCALE(SRC1[i+63:i], SRC2[i+63:i]);FI;ELSE IF *merging-masking*; merging-maskingTHEN *DEST[i+63:i] remains unchanged*ELSE ; zeroing-maskingDEST[i+63:i] := 0FIFI;ENDFORDEST[MAXVL-1:VL] := 0Table 5-22. Additional VSCALEFPD/SD Special CasesSpecial Case Returned value Faults|result| < 2-1074±0 or ±Min-Denormal (Src1 sign)Underflow|result| 21024±INF (Src1 sign) or ±Max-normal (Src1 sign)Overflow

image/svg+xmlIntel C/C++ Compiler Intrinsic EquivalentVSCALEFPD __m512d _mm512_scalef_round_pd(__m512d a, __m512d b, int rounding);VSCALEFPD __m512d _mm512_mask_scalef_round_pd(__m512d s, __mmask8 k, __m512d a, __m512d b, int rounding);VSCALEFPD __m512d _mm512_maskz_scalef_round_pd(__mmask8 k, __m512d a, __m512d b, int rounding);VSCALEFPD __m512d _mm512_scalef_pd(__m512d a, __m512d b);VSCALEFPD __m512d _mm512_mask_scalef_pd(__m512d s, __mmask8 k, __m512d a, __m512d b);VSCALEFPD __m512d _mm512_maskz_scalef_pd(__mmask8 k, __m512d a, __m512d b);VSCALEFPD __m256d _mm256_scalef_pd(__m256d a, __m256d b);VSCALEFPD __m256d _mm256_mask_scalef_pd(__m256d s, __mmask8 k, __m256d a, __m256d b);VSCALEFPD __m256d _mm256_maskz_scalef_pd(__mmask8 k, __m256d a, __m256d b);VSCALEFPD __m128d _mm_scalef_pd(__m128d a, __m128d b);VSCALEFPD __m128d _mm_mask_scalef_pd(__m128d s, __mmask8 k, __m128d a, __m128d b);VSCALEFPD __m128d _mm_maskz_scalef_pd(__mmask8 k, __m128d a, __m128d b);SIMD Floating-Point ExceptionsOverflow, Underflow, Invalid, Precision, Denormal (for Src1).Denormal is not reported for Src2.Other ExceptionsSee Table2-46, “Type E2 Class Exception Conditions”.

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.