Back to results
US 2017/0322802 A1Published application
Performing Rounding Operations Responsive To An Instruction
AssigneeIntel Corporation
InventorsRonen Zohar, Shane Story
Life of this patent
Estimating the term…
Abstract
In one embodiment, the present invention includes a method for receiving a rounding instruction and an immediate value in a processor, determining if a rounding mode override indicator of the immediate value is active, and if so executing a rounding operation on a source operand in a floating point unit of the processor responsive to the rounding instruction and according to a rounding mode set forth in the immediate operand. Other embodiments are described and claimed.
Claims4
A processor comprising:
- a plurality of registers including a first register and a second register;
- a control register having a first field to indicate a current floating point round mode, and a second field to indicate whether denormals are to be converted to zero;
- a status register having a third field to store a value, the value to indicate whether an inexact exception has occurred;
- a control unit to receive a round instruction and to decode fields of the round instruction, the round instruction to identify the first register, which is to store a source operand with a plurality of packed double precision floating point values, the round instruction to indicate that the current floating point round mode is to be used, and the round instruction to indicate to suppress a change in the value of the third field of the status register;
- and
- an execution unit coupled to the control unit, and coupled to the plurality of registers, the execution unit, responsive to the round instruction, to:
- convert a denormal of the source operand to zero when the second field indicates that said denormals are to be converted to zero;
- perform a round operation according to the current floating point round mode, to generate integral valued packed double precision floating point values that correspond to the packed double precision floating point values of the source operand;
- and
- store the integral valued packed double precision floating point values in the second register.
7 more elements
Dependencies are inferred from the claim text.