TRUNCATION FLOATING-POINT CONVERSION TO INTEGER WITH SATURATION

    公开(公告)号:US20240103872A1

    公开(公告)日:2024-03-28

    申请号:US18192500

    申请日:2023-03-29

    IPC分类号: G06F9/30

    摘要: Techniques for performing floating-point to integer conversion with saturation are described. In some examples, an instruction is executed to perform the conversion. In some examples, a single instruction to include at least one or more fields for an opcode and one or more fields for location information for at least a first source operand and a destination operand, wherein the opcode is to indicate execution circuitry is to convert, using truncation or saturation, each floating-point data element of at least the first source operand to an integer value and store the integer value into a corresponding data element position of the destination operand, wherein truncation is to be used when a conversion is inexact and saturation is to be used when a conversion overflows.