fcfids
Floating Convert with round Signed Doubleword to Single-Precision format
fcfids FRT,FRB
fcfids. FRT,FRB
fcfids. FRT,FRB
Converts a 64-bit signed fixed-point operand in register FRB to single-precision floating-point.
Details
The 64-bit signed fixed-point operand in register FRB is converted to an infinitely precise floating-point integer. The result of the conversion is rounded to single-precision, using the rounding mode specified by RN, and placed into register FRT.
Pseudocode Operation
FRT ← ConvertToFloat(FRB, RN)
SetFlags(FPRF, FR, FI)
Programming Note
Converting a signed integer word to single-precision floating-point can be accomplished by loading the word from storage using Load Float Word Algebraic and then using fcfids.
Example
fcfids f1, f3
Encoding
Binary Layout
59
0
FRT
6
0
11
FRB
31
846
/
Operands
-
FRT
Target -
FRB
Source