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.

Details

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

Pseudocode Operation

F[rd] = R[rs1];

Example

FMV.W.X f1, x10

Encoding

Binary Layout
1111000
31:25
00000
24:20
rs1
19:15
000
14:12
rd
11:7
1010011
6:0
 
Format I-Type (Float)
Opcode 0x53
Extension F

Operands

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