fcfidus
Floating Convert from Unsigned Integer Doubleword Single
Converts 64-bit Unsigned Int to Single.
Details
Floating Convert from Unsigned Integer Doubleword Single converts the unsigned 64-bit integer held in FRB to a single-precision floating-point value and places the result in FRT. The conversion uses the current rounding mode in FPSCR. FPSCR is updated with FPRF, FR, and FI flags.
Pseudocode Operation
FRT ← (float)(uint64_t)FRB
Update FPSCR[FPRF, FR, FI]
Programming Note
The fcfidus instruction is used to convert a 64-bit unsigned integer from one register to a single-precision floating-point number in another register. Ensure the source register contains a valid unsigned integer and that the rounding mode specified by RN is appropriate for your application. This instruction alters several fields in the FPSCR, so be aware of potential flag changes that may affect subsequent operations.
Example
Encoding
Operands
-
FRT
Target -
FRB
Source