ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

fmv.w.x

T1 riscv fp insn
Floating-Point Move Single-Precision Word from Integer Register
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 F
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsF

Summary

The fmv.w.x instruction moves the single-precision value encoded in IEEE 754-2008 standard encoding from the lower 32 bits of integer register xs1 to the floating-point register fd. The bits are not modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved.

Syntax / Encoding

fmv.w.x fd, xs1 | 111100000000xxxxx000xxxxx1010011 (mask=0xfff0707f match=0xf0000053)

Cross-Chip Latency & Throughput (11 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Andes 45-Series111Andes45FMVllvm_sched_models
Tenstorrent Ascalon-X111AscalonFXBllvm_sched_models
XiangShan KunMingHu111XSPipeBJU2llvm_sched_models
SiFive P670 / P600211SiFiveP600MulI2Fllvm_sched_models
SiFive P870 / P800211SiFiveP800I2Fllvm_sched_models
SiFive 7-Series (U74)311PipeAllvm_sched_models
SpacemiT X10030.251SMTX100_FQllvm_sched_models
XiangShan NanHu30.251XS2FMACllvm_sched_models
SpacemiT X60 (K1)40.51SMX60_IEUllvm_sched_models
Syntacore SCR7412FPU_IS+FALUllvm_sched_models
MIPS P8700 (RISC-V)711p8700IssueLSUllvm_sched_models

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV111100000000xxxxx000xxxxx10100110xfff0707f / 0xf0000053

Operands

NameDescription
xs1bits [19:15]
fdbits [11:7]

Reference Notes

The `fmv.w.x` instruction moves the single-precision value encoded in `IEEE 754-2008` standard encoding
from the lower 32 bits of integer register `xs1` to the floating-point register `fd`. The bits are not
modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved.