FMV.X.W

Move Float to Integer

FMV.X.W rd, rs1

Moves the bit pattern of a floating-point register to an integer 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

R[rd] = sext(F[rs1]);

Example

FMV.X.W x10, f1

Encoding

Binary Layout
1110000
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 (Integer)
  • rs1
    Source (Float)