VFPCLASSPS—Tests Types Of a Packed Float32 ValuesInstruction Operand EncodingDescriptionThe FPCLASSPS instruction checks the packed single-precision floating point values for special categories, specified by the set bits in the imm8 byte. Each set bit in imm8 specifies a category of floating-point values that the input data element is classified against. The classified results of all specified categories of an input value are ORed together to form the final boolean result for the input element. The result of each element is written to the corre-sponding bit in a mask register k2 according to the writemask k1. Bits [MAX_KL-1:16/8/4] of the destination are cleared.The classification categories specified by imm8 are shown in Figure5-13. The classification test for each category is listed in Table 5-4.The 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 32-bit memory location.EVEX.vvvv is reserved and must be 1111b otherwise instructions will #UD.OperationCheckFPClassSP (tsrc[31:0], imm8[7:0]){//* Start checking the source operand for special type *//NegNum := tsrc[31];IF (tsrc[30:23]=0FFh) Then ExpAllOnes := 1; FI;IF (tsrc[30:23]=0h) Then ExpAllZeros := 1;IF (ExpAllZeros AND MXCSR.DAZ) Then MantAllZeros := 1;ELSIF (tsrc[22:0]=0h) ThenMantAllZeros := 1;FI;ZeroNumber= ExpAllZeros AND MantAllZerosSignalingBit= tsrc[22];sNaN_res := ExpAllOnes AND NOT(MantAllZeros) AND NOT(SignalingBit); // sNaNqNaN_res := ExpAllOnes AND NOT(MantAllZeros) AND SignalingBit; // qNaNPzero_res := NOT(NegNum) AND ExpAllZeros AND MantAllZeros; // +0Opcode/InstructionOp / En64/32 bit Mode SupportCPUID Feature FlagDescriptionEVEX.128.66.0F3A.W0 66 /r ibVFPCLASSPS k2 {k1}, xmm2/m128/m32bcst, imm8AV/VAVX512VLAVX512DQTests the input for the following categories: NaN, +0, -0, +Infinity, -Infinity, denormal, finite negative. The immediate field provides a mask bit for each of these category tests. The masked test results are OR-ed together to form a mask result.EVEX.256.66.0F3A.W0 66 /r ibVFPCLASSPS k2 {k1}, ymm2/m256/m32bcst, imm8AV/VAVX512VLAVX512DQTests the input for the following categories: NaN, +0, -0, +Infinity, -Infinity, denormal, finite negative. The immediate field provides a mask bit for each of these category tests. The masked test results are OR-ed together to form a mask result.EVEX.512.66.0F3A.W0 66 /r ibVFPCLASSPS k2 {k1}, zmm2/m512/m32bcst, imm8AV/VAVX512DQTests the input for the following categories: NaN, +0, -0, +Infinity, -Infinity, denormal, finite negative. The immediate field provides a mask bit for each of these category tests. The masked test results are OR-ed together to form a mask result.Op/EnTuple TypeOperand 1Operand 2Operand 3Operand 4AFullModRM:reg (w)ModRM:r/m (r)NANA
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.