FMV.W.X

Move Integer to Float

FMV.W.X rd, rs1

Moves the bit pattern of an integer register to a floating-point register.

Encoding

Binary Layout
111100000000
31:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
 
Format I-Type (Float)
Opcode 0xF0000053
Extension F

Operands

  • rd
    Dest (Float)
  • rs1
    Source (Integer)

Example

FMV.W.X f1, x10

// Copy bits from x10 to f1.

Related

More in F

Description

Moves bits from a floating-point register to an integer register (or vice versa) without conversion. The bit pattern is preserved exactly.

Operation

F[rd] = R[rs1];