trncf.dl


Conversion to fixed-point format (double precision) (Floating-point Convert Double to Long, round toward zero (Double))

[Syntax]

-

trncf.dl reg1, reg2

[Function]

This instruction arithmetically converts the double-precision floating-point format contents of the register pair specified by general-purpose register reg1 to 64-bit fixed-point format, and stores the result in the register pair specified by general-purpose register reg2.

The result is rounded in the zero direction, regardless of the current rounding mode.

When the source operand is infinite or not-a-number, or when the rounded result is outside the range of 263 - 1 to -263, an IEEE754-defined invalid operation exception is detected.

If invalid operation exceptions are not enabled, the preservation bit (bit 4) of the FPSR register is set as an invalid operation and no exception occurs. The return value differs as follows, according to differences among sources.

-

Source is a positive number or + : 263 - 1 is returned.

-

Source is a negative number, not-a-number, or - : -263 is returned.

[Description]

-

The assembler generates one trncf.dl machine instruction.