VFP Exception Handling
ARM DDI 0301H
Copyright © 2004-2009 ARM Limited. All rights reserved.
22-25
ID012310
Non-Confidential, Unrestricted Access
In the
Unsigned results and Signed results
columns, the rounding mode notations are:
N
Round-to-nearest mode.
P
Round-towards-plus-infinity mode.
M
Round-towards-minus infinity mode.
Z
Round-towards-zero mode.
Table 22-12 lists the single-precision float-to-integer bounce range and the results returned for
exceptional conditions. The exponent values that Table 22-12 lists are in biased format.
Table 22-12 Single-precision float-to-integer bounce thresholds and stored results
Floating-point
value
Integer value
Unsigned result
Status
Signed result
Status
Response
NaN
-
0x00000000
Invalid
0x00000000
Invalid
Bounce all
0x7F800000
+infinity
0xFFFFFFFF
Invalid
0x7FFFFFFF
Invalid
Bounce all
0x7F7FFFFF
to
0x4F800000
+maximum SP
a
to
2
32
0xFFFFFFFF
Invalid
0x7FFFFFFF
Invalid
Bounce all
0x4F7FFFFF
to
0x4F000000
2
32
– 2
8
to
2
31
0xFFFFFF00
to
0x80000000
Valid
0x7FFFFFFF
Invalid
Bounce S UnZ
0x4EFFFFFF
to
0x4E800000
2
31
– 2
7
to
2
30
0x7FFFFF80
to
0x40000000
Valid
0x7FFFFF80
to
0x40000000
Valid
Bounce SnZ
0x4E7FFFFF
to
0x00000000
2
30
– 2
6
to
+0
0x3FFFFFC0
to
0x00000000
Valid
0x3FFFFFC0
to
0x00000000
Valid
No bounce
0x80000000
to
0xCE7FFFFF
–0
to
–2
30
+ 2
6
0x00000000
Invalid
b
0x00000000
to
0xC0000040
Valid
Bounce U
0xCE800000
to
0xCEFFFFFF
–2
30
to
–2
31
+ 2
7
)
0x00000000
Invalid
0xC0000000
to
0x80000080
Valid
Bounce U
0xCF000000
–2
31
0x00000000
Invalid
0x80000000
Valid
Bounce U SnZ
0xCF000000
to
0xFF7FFFFF
–2
31
to
–maximum SP
0x00000000
Invalid
0x80000000
Invalid
Bounce all
0xFF800000
–infinity
0x00000000
Invalid
0x80000000
Invalid
Bounce all
a. SP = single-precision.
b. A negative input value that rounds to a zero result returns zero and is not invalid.