dcffix

Decimal Convert From Fixed

dcffix FRT, FRB

Converts a 64-bit integer to DFP.

Encoding

Binary Layout
59
0:5
FRT
6:10
0
11:15
FRB
16:20
802
21:30
/
31
 
Format X-form
Opcode 0xEC000644

Operands

  • FRT
    Target
  • FRB
    Source
  • RT
    Target General Purpose Register
  • RA
    Source General Purpose Register
  • RB
    Source General Purpose Register

Example

dcffix f1, f3

Registers Altered

FPSCR

Related

More in Decimal Floating-Point

Reference

Description

Converts a 64-bit signed integer from FRB to a decimal floating-point value and places it in FRT. The integer is interpreted as a two's-complement 64-bit value. The result is an exact representation in the decimal floating-point format. FPSCR is updated if the integer is out of range for DFP.

Operation

integer_value ← FRB[0:63] (signed)
FRT ← convert_to_DFP(integer_value)
FPSCR ← updated based on conversion result