fcfidus.

Floating Convert with round Unsigned Doubleword to Single-Precision format

fcfidus. FRT,FRB

Converts an unsigned doubleword integer in a floating-point register to a single-precision floating-point number, rounding the result.

Details

The instruction converts the contents of the source floating-point register (FRB) from an unsigned doubleword integer to a single-precision floating-point number and stores it in the target floating-point register (FRT).

Pseudocode Operation

FRT <- ConvertToSinglePrecision(FRB, unsigned)

Programming Note

Use fcfidus. when converting unsigned 64-bit integers to single-precision floats. Ensure the source register contains a valid unsigned integer; otherwise, the result is undefined. This instruction operates at user privilege level and does not raise exceptions for invalid input values.

Example

fcfidus. f1, f3

Encoding

Binary Layout
111011
0
FRT
6
//
11
FRB
16
11110
21
01110
31
 
Format X-form
Opcode 0x7C000000
Extension Floating-Point
Registers Altered FPSCR, CR0

Operands

  • FRT
    Target Floating Point Register
  • FRB
    Source Floating Point Register