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

fmv.x.w

T1 riscv fp insn
Floating-Point Move Single-Precision Word to 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.x.w instruction moves the single-precision value in floating-point register fs1 represented in IEEE 754-2008 encoding to the lower 32 bits of integer register xd. The bits are not modified in the transfer, and in particular, the payloads of non-canonical NaNs are preserved. For RV64, the higher 32 bits of the destination register are filled with copies of the floating-point number's sign bit.

Syntax / Encoding

fmv.x.w xd, fs1 | 111000000000xxxxx000xxxxx1010011 (mask=0xfff0707f match=0xe0000053)

Cross-Chip Latency & Throughput (11 cores)

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

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV111000000000xxxxx000xxxxx10100110xfff0707f / 0xe0000053

Operands

NameDescription
fs1bits [19:15]
xdbits [11:7]

Reference Notes

The `fmv.x.w` instruction moves the single-precision value in floating-point register `fs1`` represented in `IEEE 754-2008`
encoding to the lower 32 bits of integer register `xd`. The bits are not modified in the transfer, and in particular, the
payloads of non-canonical NaNs are preserved. For RV64, the higher 32 bits of the destination register are filled with copies
of the floating-point number's sign bit.