PowerPC e500 Core Family Reference Manual, Rev. 1
10-14
Freescale Semiconductor
Auxiliary Processing Units (APUs)
efdctui
efdctui
Convert Floating-Point Double-Precision to Unsigned Integer
efdctui
rD,rB
rD
32:63
←
CnvtFP64ToI32Sat(
rB
0:63
, UNSIGN, ROUND, I
The double-precision floating-point value in rB is converted to an unsigned 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 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.
efdctuiz
efdctuiz
Convert Floating-Point Double-Precision to Unsigned Integer with Round toward Zero
efdctuiz
rD,rB
rD
32:63
←
CnvtFP64ToI32Sat(
rB
0:63
, UNSIGN, TRUNC, I)
The double-precision floating-point value in rB is converted to an unsigned integer using the
rounding mode Round toward Zero 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, 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 to allow the handler to 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
0
0
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
1
0
0
0
Summary of Contents for PowerPC e500 Core
Page 1: ...PowerPC e500 Core Family Reference Manual Supports e500v1 e500v2 E500CORERM Rev 1 4 2005...
Page 36: ...PowerPC e500 Core Family Reference Manual Rev 1 xxxvi Freescale Semiconductor...
Page 38: ...PowerPC e500 Core Family Reference Manual Rev 1 Part I 2 Freescale Semiconductor...
Page 332: ...PowerPC e500 Core Family Reference Manual Rev 1 Part II 2 Freescale Semiconductor...
Page 530: ...Opcode Listings PowerPC e500 Core Family Reference Manual Rev 1 D 50 Freescale Semiconductor...
Page 534: ...PowerPC e500 Core Family Reference Manual Rev 1 E 4 Freescale Semiconductor Revision History...