
247
SAM4CP [DATASHEET]
43051E–ATPL–08/14
12.12.2.4 Floating-point Status Control Register
Name:
FPSCR
Access:
Read/Write
The FPSCR provides all necessary User level control of the floating-point system.
N: Negative Condition Code Flag
Floating-point comparison operations update this flag.
Z: Zero Condition Code Flag
Floating-point comparison operations update this flag.
C: Carry Condition Code Flag
Floating-point comparison operations update this flag.
V: Overflow Condition Code Flag
Floating-point comparison operations update this flag.
AHP: Alternative Half-precision Control
0: IEEE half-precision format selected.
1: Alternative half-precision format selected.
DN: Default NaN Mode Control
0: NaN operands propagate through to the output of a floating-point operation.
1: Any operation involving one or more NaNs returns the Default NaN.
FZ: Flush-to-zero Mode Control
0: Flush-to-zero mode disabled. The behavior of the floating-point system is fully compliant with the IEEE 754 standard.
1: Flush-to-zero mode enabled.
RMode: Rounding Mode Control
The encoding of this field is:
0b00: Round to Nearest (RN) mode.
0b01: Round towards Plus Infinity (RP) mode.
0b10: Round towards Minus Infinity (RM) mode.
0b11: Round towards Zero (RZ) mode.
The specified rounding mode is used by almost all floating-point instructions.
31
N
30
Z
29
C
28
V
27
–
26
AHP
25
DN
24
FZ
23
22
21
20
19
18
17
16
RMode
–
15
14
13
12
11
10
9
8
–
7
6
5
4
3
2
1
0
IDC
–
IXC
UFC
OFC
DZC
IOC