fmv.w.x
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userFSummary
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)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes 45-Series | 1 | 1 | 1 | Andes45FMV | llvm_sched_models |
| Tenstorrent Ascalon-X | 1 | 1 | 1 | AscalonFXB | llvm_sched_models |
| XiangShan KunMingHu | 1 | 1 | 1 | XSPipeBJU2 | llvm_sched_models |
| SiFive P670 / P600 | 2 | 1 | 1 | SiFiveP600MulI2F | llvm_sched_models |
| SiFive P870 / P800 | 2 | 1 | 1 | SiFiveP800I2F | llvm_sched_models |
| SiFive 7-Series (U74) | 3 | 1 | 1 | PipeA | llvm_sched_models |
| SpacemiT X100 | 3 | 0.25 | 1 | SMTX100_FQ | llvm_sched_models |
| XiangShan NanHu | 3 | 0.25 | 1 | XS2FMAC | llvm_sched_models |
| SpacemiT X60 (K1) | 4 | 0.5 | 1 | SMX60_IEU | llvm_sched_models |
| Syntacore SCR7 | 4 | 1 | 2 | FPU_IS+FALU | llvm_sched_models |
| MIPS P8700 (RISC-V) | 7 | 1 | 1 | p8700IssueLSU | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 111100000000xxxxx000xxxxx1010011 | 0xfff0707f / 0xf0000053 |
Operands
| Name | Description |
|---|---|
xs1 | bits [19:15] |
fd | bits [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.