TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-419
UTOF
Unsigned to Floating-point
Description
Converts the contents of data register D[a] from 32-bit unsigned integer format to floating-point format. The
rounded result is stored in D[c].
UTOFD[c], D[a] (RR)
rounded_result = ieee754_round(u_real(D[a]), PSW.RM);
result = ieee754_32bit_format(rounded_result);
D[c] = result[31:0];
Exception Flags
Examples
utof d2, d1
See Also
FTOU, FTOUZ
FS if(set_FX) then PSW.FS = 1 else PSW.FS = 0;
FI Not set by this instruction.
FV Not set by this instruction.
FZ Not set by this instruction.
FU Not set by this instruction.
FX if(u_real(D[c]) != f_real(D[a])) then set_FX = 1 else set_FX = 0;
if(set_FX) then PSW.FX = 1;
31
c
28 27
16
H
20 19
-
18 17
1
H
16 15
-
12 11
a
8 7
4B
H
0