fcfidus
Floating Convert from Unsigned Integer Doubleword Single
Converts 64-bit Unsigned Int to Single.
Details
The fcfidus instruction converts a 64-bit unsigned fixed-point operand from register FRB to an infinitely precise floating-point integer, rounds it to single-precision using the rounding mode specified by RN, and places the result into register FRT. The special registers FPSCR (fields: FPRF, FR, FI, FX, XX) are altered accordingly.
Pseudocode Operation
FRT ← ConvertToFloat(FRB)
Round(FRT, RN)
SetFPSCRFlags(FRT)
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