fcfidus

Floating Convert from Unsigned Integer Doubleword Single

fcfidus FRT, FRB

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

fcfidus f1, f3

Encoding

Binary Layout
59
0
FRT
6
0
11
FRB
16
974
21
/
31
 
Format X-form
Opcode 0xEC00079C
Extension Floating-Point
Registers Altered FPSCR

Operands

  • FRT
    Target
  • FRB
    Source