
B FPU Instruction Set Details

TRUNC.L.fmt fd, fs
Description:
The contents of the floating-point register specified by fs are interpreted in the specified source format, fmt, and arithmetically converted to the long fixed-point format. The result is placed in the floating-point register specified by fd.
Regardless of the setting of the current rounding mode, the conversion is rounded as if the current rounding mode is round toward zero (1).
This instruction is valid only for conversion from single- or double-precision floating-point formats.
When the source operand is an Infinity, NaN, or the correctly rounded integer result is outside of -263 to 263-1, the Invalid operation exception is raised. If the Invalid operation is not enabled then no exception is taken and 263-1 is returned.
Exceptions:
Coprocessor unusable exception
Floating-Point exception
Coprocessor Exceptions:
Invalid operation exception
Unimplemented operation exception
Inexact exception
Overflow exception





Generated with CERN WebMaker
![]()