3
3-55 M32R-FPU Software Manual (Rev.1.01)
[Supplemental Operation Description]
The results of the FTOI instruction executed based on the Rsrc value, both when DN = 0 and DN = 1,
are shown in below.
DN = 0
Rsrc Value (exponent with no bias) Rdest Exception
Rsrc ≥ 0 +Infinity When EIT occurs: no change Invalid Operation Exception
127 exp 31 Other EIT: H'7FFF FFFF
30 exp -126 H'0000 0000 to H'7FFF FF80 No change (Note 1)
+Denormalized value No change Unimplemented Exception
+0 H'0000 0000 No change
Rsrc < 0 -0
-Denormalized value No change Unimplemented Exception
30 exp -126 H'0000 0000 to H'8000 0080 No change (Note 1)
127 exp 31 When EIT occurs: no change Invalid Operation Exception
-Infinity Other EIT: H'8000 0080 (Note 2)
NaN QNaN When EIT occurs: no change Invalid Operation Exception
Other EIT:
SNaN Signed bit = 0:H’7FFF FFFF
Signed bit = 1:H’8000 0000
Note 1: Inexact Exception occurs when rounding is performed.
2: Inexact Exception does not occur when Rsrc = H’CF00 0000.
DN = 1
Rsrc Value (exponent with no bias) Rdest Exception
Rsrc ≥ 0 +Infinity When EIT occurs: no change Invalid Operation Exception
127 exp 31 Other EIT: H'7FFF FFFF
30 exp -126 H'0000 0000 to H'7FFF FF80 No change (Note 1)
+0, +Denormalized value H'0000 0000 No change
Rsrc < 0 -0, -Denormalized value
30 exp -126 H'0000 0000 to H'8000 0080 No change (Note 1)
127 exp 31 When EIT occurs: no change Invalid Operation Exception
-Infinity Other EIT: H'8000 0000 (Note 2)
NaN QNaN When EIT occurs: no change Invalid Operation Exception
Other EIT:
SNaN Signed bit = 0:H’7FFF FFFF
Signed bit = 1:H’8000 0000
Note 1: Inexact Exception occurs when rounding is performed.
2: Inexact Exception does not occur when Rsrc = H’CF00 0000.
INSTRUCTIONS
3.2 Instruction description

FTOIFTOI

floating point Instructions

Float to Integer

[M32R-FPU Extended Instruction]