fcfidus

Floating Convert from Unsigned Integer Doubleword Single

fcfidus FRT, FRB

Converts 64-bit Unsigned Int to Single.

Details

Floating Convert from Unsigned Integer Doubleword Single converts the unsigned 64-bit integer held in FRB to a single-precision floating-point value and places the result in FRT. The conversion uses the current rounding mode in FPSCR. FPSCR is updated with FPRF, FR, and FI flags.

Pseudocode Operation

FRT ← (float)(uint64_t)FRB
Update FPSCR[FPRF, FR, FI]

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