Fpu Control Word - Intel Quark SoC X1000 Core Developer's Manual

Hide thumbs Also See for Quark SoC X1000 Core:
Table of Contents

Advertisement

System Register Organization—Intel
Figure 22.

FPU Control Word

Denormalized Operand
See
Section 4.8
Note:
See section 4.2.7, "Compatibility," for RESERVED bits.
4.5.5

FPU Control Word

The FPU provides several processing options that are selected by loading a control word
from memory into the control register.
fields in the control word.
The low-order byte of the FPU control word configures the FPU error and exception
masking. Bits 5:0 of the control word contain individual masks for each of the six
exceptions that the FPU recognizes.
The high-order byte of the control word configures the FPU operating mode, including
precision and rounding.
RC (Rounding Control, bits 11:10)
RC bits provide for directed rounding and true chop, as well as the unbiased round
to nearest even mode specified in the IEEE standard. Rounding control affects only
those instructions that perform rounding at the end of the operation (and thus can
generate a precision exception); namely, FST, FSTP, FIST, all arithmetic instructions
(except FPREM, FPREM1, FXTRACT, FABS and FCHS), and all transcendental
instructions.
PC (Precision Control, bits 9:8)
PC bits can be used to set the FPU internal operating precision of the significand at
less than the default of 64 bits (extended precision). This can be useful in providing
compatibility with early generation arithmetic processors of smaller precision. PC
October 2013
Order Number: 329679-001US
®
Quark Core
15
X
X
X
X
RC
PC
Reserved
Exception Masks:
Precision
Underflow
Overflow
Zero Divide
Invalid Operation
Precision Control:
00-24 bits (single precision)
01- (reserved)
10-53 bits (double precision)
11-64 bits (extended precision)
for RESERVED bits.
7
0
P
U
O
Z
D
I
X
X
M
M
M
M
M
M
Rounding Control:
00-Round to nearest or even
01- Round down (toward -œ)
10- Round up (toward +œ)
11- Chop (truncate toward zero)
Figure 22
shows the format and encoding of
Reserved
Reserved †
Rounding Control
Precision Control
"0" after reset or FINIT;
changeable upon loading the
control word (CW). Programs
must ignore this bit.
A5157-01
®
Intel
Quark SoC X1000 Core
Developer's Manual
61

Advertisement

Table of Contents
loading

Table of Contents