PowerPC e500 Core Family Reference Manual, Rev. 1
10-12
Freescale Semiconductor
Auxiliary Processing Units (APUs)
efdctsf
efdctsf
Convert Floating-Point Double-Precision to Signed Fraction
efdctsf
rD,rB
rD
32:63
←
CnvtFP64ToI32Sat(
rB
0:63
, SIGN, ROUND, F)
The double-precision floating-point value in rB is converted to a signed fraction using the current
rounding mode and the result is saturated if it cannot be represented in a 32-bit fraction. NaNs are
converted as though they were zero.
Exceptions:
If the rB contents are Infinity, Denorm, or NaN, or if an overflow occurs, SPEFSCR[FINV] is set
and FG and FX are cleared. If SPEFSCR[FINVE] is set, an interrupt is taken and rD is not
updated.
If conversion is inexact, inexact status is signalled and SPEFSCR[FINXS] is set. If the
floating-point inexact exception is enabled, a floating-point round interrupt is taken, rD is updated
with the truncated result, and FG and FX are updated so the handler can perform rounding.
efdctsi
efdctsi
Convert Floating-Point Double-Precision to Signed Integer
efdctsi
rD,rB
rD
32:63
←
CnvtFP64ToI32Sat(
rB
0:63
, SIGN, ROUND, I)
The double-precision floating-point value in rB is converted to a signed integer using the current
rounding mode and the result is saturated if it cannot be represented in a 32-bit integer. NaNs are
converted as though they were zero.
Exceptions:
If rB contents are Infinity, Denorm, or NaN or if an overflow occurs, SPEFSCR[FINV] is set and
FG and FX are cleared. If SPEFSCR[FINVE] is set, an interrupt is taken, rD is not updated, and
no other status bits are set.
If conversion is inexact, inexact status is signalled and SPEFSCR[FINXS] is set. If the
floating-point inexact exception is enabled, a floating-point round interrupt is taken, rD is updated
with the truncated result, and FG and FX are updated so the handler can perform rounding.
0
5
6
10 11
15 16
20 21
31
0
0
0
1
0
0
r
D
0
0
0
0
0
r
B
0
1
0
1
1
1
1
0
1
1
1
0
5
6
10 11
15 16
20 21
31
0
0
0
1
0
0
r
D
0
0
0
0
0
r
B
0
1
0
1
1
1
1
0
1
0
1
Содержание PowerPC e500 Core
Страница 1: ...PowerPC e500 Core Family Reference Manual Supports e500v1 e500v2 E500CORERM Rev 1 4 2005...
Страница 36: ...PowerPC e500 Core Family Reference Manual Rev 1 xxxvi Freescale Semiconductor...
Страница 38: ...PowerPC e500 Core Family Reference Manual Rev 1 Part I 2 Freescale Semiconductor...
Страница 316: ...PowerPC e500 Core Family Reference Manual Rev 1 7 18 Freescale Semiconductor Performance Monitor...
Страница 332: ...PowerPC e500 Core Family Reference Manual Rev 1 Part II 2 Freescale Semiconductor...
Страница 362: ...PowerPC e500 Core Family Reference Manual Rev 1 10 26 Freescale Semiconductor Auxiliary Processing Units APUs...
Страница 440: ...PowerPC e500 Core Family Reference Manual Rev 1 A 8 Freescale Semiconductor Programming Examples...
Страница 444: ...PowerPC e500 Core Family Reference Manual Rev 1 B 4 Freescale Semiconductor Guidelines for 32 Bit Book E...
Страница 530: ...Opcode Listings PowerPC e500 Core Family Reference Manual Rev 1 D 50 Freescale Semiconductor...
Страница 534: ...PowerPC e500 Core Family Reference Manual Rev 1 E 4 Freescale Semiconductor Revision History...