fcfid

Floating Convert with round Signed Doubleword to Double-Precision format

fcfid FRT,FRB
fcfid. FRT,FRB

Converts a signed doubleword integer to a double-precision floating-point number.

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 double-precision, using the rounding mode specified by RN, and placed into register FRT.

Pseudocode Operation

if 'fcfid' then
    FRT <- (FRB) converted to double-precision floating-point integer
    round result using RN
    if Rc=1 then update CR1

Programming Note

Converting a signed integer word to double-precision floating-point can be accomplished by loading the word from storage using Load Float Word Algebraic Indexed and then using fcfid.

Example

fcfid f1, f3

Encoding

Binary Layout
63
0
FRT
6
0
11
FRB
31
846
/
 
Format X-form
Opcode 0xFC00069C
Extension Floating-Point
Registers Altered FPSCR, CR1 (if Rc=1)

Operands

  • FRT
    Target
  • FRB
    Source