모두의 코드
VFIXUPIMMSD (Intel x86/64 assembly instruction)

작성일 : 2020-09-01 이 글은 512 번 읽혔습니다.

VFIXUPIMMSD

Fix Up Special Scalar Float64 Value

참고 사항

아래 표를 해석하는 방법은 x86-64 명령어 레퍼런스 읽는 법 글을 참조하시기 바랍니다.

Opcode/
Instruction

Op /
En

64/32
bit Mode
Support

CPUID
Feature
Flag

Description

EVEX.NDS.LIG.66.0F3A.W1 55 /r ib
VFIXUPIMMSD xmm1 {k1}{z} xmm2 xmm3/m64{sae} imm8

T1S

V/V

AVX512F

Fix up a float64 number in the low quadword element of xmm2 using scalar int32 table in xmm3/m64 and store the result in xmm1.

Instruction Operand Encoding

Op/En

Operand 1

Operand 2

Operand 3

Operand 4

T1S

ModRM:reg (r, w)

EVEX.vvvv

ModRM:r/m (r)

Imm8

Description

Perform a fix-up of the low quadword element encoded in double-precision floating-point format in the first source operand (the second operand) using a 32-bit, two-level look-up table specified in the low quadword element of the second source operand (the third operand) with exception reporting specifier imm8. The element that is fixed-up is selected by mask bit of 1 specified in the opmask k1. Mask bit of 0 in the opmask k1 or table response action of 0000b preserves the corresponding element of the first operand. The fixed-up element from the first source operand or the preserved element in the first operand becomes the low quadword element of the destination operand (the first operand). Bits 127:64 of the destination operand is copied from the corresponding bits of the first source operand. The destination and first source operands are XMM registers. The second source operand can be a XMM register or a 64- bit memory location.

The two-level look-up table perform a fix-up of each DP FP input data in the first source operand by decoding the input data encoding into 8 token types. A response table is defined for each token type that converts the input encoding in the first source operand with one of 16 response actions.

This instruction is specifically intended for use in fixing up the results of arithmetic calculations involving one source so that they match the spec, although it is generally useful for fixing up the results of multiple-instruction sequences to reflect special-number inputs. For example, consider rcp(0). Input 0 to rcp, and you should get INF according to the DX10 spec. However, evaluating rcp via Newton-Raphson, where x=approx(1/0), yields an incor-rect result. To deal with this, VFIXUPIMMPD can be used after the N-R reciprocal sequence to set the result to the correct value (i.e. INF when the input is 0).

If MXCSR.DAZ is not set, denormal input elements in the first source operand are considered as normal inputs and do not trigger any fixup nor fault reporting.

Imm8 is used to set the required flags reporting. It supports #ZE and #IE fault reporting (see details below).

MXCSR.DAZ is used and refer to zmm2 only (i.e. zmm1 is not considered as zero in case MXCSR.DAZ is set).

MXCSR mask bits are ignored and are treated as if all mask bits are set to masked response). If any of the imm8 bits is set and the condition met for fault reporting, MXCSR.IE or MXCSR.ZE might be updated.

Operation

VFIXUPIMMSD (EVEX encoded version)

IF k1[0] OR *no writemask*
    THEN DEST[63:0] <-  FIXUPIMM_DP(DEST[63:0], SRC1[63:0], SRC2[63:0], imm8 [7:0])
    ELSE 
          IF *merging-masking* ; merging-masking
                THEN *DEST[63:0] remains unchanged*
                ELSE  DEST[63:0] <-  0 ; zeroing-masking
          FI
FI;
DEST[127:64] <-  SRC1[127:64]
DEST[MAX_VL-1:128] <-  0
Immediate Control Description:

`embed <figure> <svg viewBox="0 0 396.539978 223.399994"> <rect x="0.000000" y="10.000000" width="0.480000" height="196.199997" fill-rule="nonzero" fill=" rgb(0,0,0) " stroke="black" /> <rect x="396.059998" y="10.000000" width="0.479980" height="196.199997" fill-rule="nonzero" fill=" rgb(0,0,0) " stroke="black" /> <rect x="0.000000" y="9.520020" width="396.540009" height="0.479980" fill-rule="nonzero" fill=" rgb(0,0,0) " stroke="black" /> <rect x="0.000000" y="206.260010" width="396.540009" height="0.480010" fill-rule="nonzero" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,62.260010 L225.479996,62.260010 L225.479996,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M221.699997,53.980011 L225.479996,44.260010 L228.479996,53.980011 L221.699997,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,80.260010 L242.699997,80.260010 L242.699997,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M239.699997,53.980011 L242.699997,44.260010 L246.479996,53.980011 L239.699997,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,98.260010 L260.700012,98.260010 L260.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M257.700012,53.980011 L260.700012,44.260010 L264.479980,53.980011 L257.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,116.260010 L278.700012,116.260010 L278.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M275.700012,53.980011 L278.700012,44.260010 L282.479980,53.980011 L275.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,134.260010 L296.700012,134.260010 L296.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M293.700012,53.980011 L296.700012,44.260010 L300.479980,53.980011 L293.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,152.260010 L314.700012,152.260010 L314.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M311.700012,53.980011 L314.700012,44.260010 L317.700012,53.980011 L311.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,169.480011 L332.700012,169.480011 L332.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M329.700012,53.980011 L332.700012,44.260010 L335.700012,53.980011 L329.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <path d="M144.479996,187.480011 L350.700012,187.480011 L350.700012,53.260010" stoke="black" stroke=" rgb(0,0,0) " fill="white" fill-opacity="0" /> <path d="M347.700012,53.980011 L350.700012,44.260010 L353.700012,53.980011 L347.700012,53.980011" fill-rule="evenodd" fill=" rgb(0,0,0) " stroke="black" /> <rect x="216.479996" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="216.479996" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="234.479996" y="26.260010" width="17.219999" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="234.479996" y="26.260010" width="17.219999" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="251.699997" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="251.699997" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="269.700012" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="269.700012" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="287.700012" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="287.700012" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="305.700012" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="305.700012" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="323.700012" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="323.700012" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="341.700012" y="26.260010" width="18.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(250,250,250) " stroke="black" /> <rect x="341.700012" y="26.260010" width="18.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="53.260010" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="53.260010" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="89.260010" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="89.260010" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="107.260010" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="107.260010" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="71.260010" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="71.260010" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="125.260010" width="108.000000" height="17.219999" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="125.260010" width="108.000000" height="17.219999" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="142.480011" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="142.480011" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="160.480011" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="160.480011" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <rect x="36.479996" y="178.480011" width="108.000000" height="18.000000" fill-rule="nonzero" fill=" rgb(255,255,255) " stroke="black" /> <rect x="36.479996" y="178.480011" width="108.000000" height="18.000000" stoke="black" fill=" rgb(0,0,0) " stroke="black" /> <text x="130.981903" y="191.260010" textLength="7.200601" font-size="8px">E</text> <text x="123.481277" y="191.260010" textLength="7.200601" font-size="8px">Z</text> <text x="115.980652" y="191.260010" textLength="7.200601" font-size="8px">#</text> <text x="84.480423" y="191.260010" textLength="0.000000" font-size="8px"> </text> <text x="84.480423" y="191.260010" textLength="0.000000" font-size="8px">

첫 댓글을 달아주세요!
프로필 사진 없음
강좌에 관련 없이 궁금한 내용은 여기를 사용해주세요

    댓글을 불러오는 중입니다..