flw
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userFSummary
The flw instruction loads a single-precision floating-point value from memory at address xs1 + imm into floating-point register fd. It does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.
Syntax / Encoding
flw fd, imm(xs1) | xxxxxxxxxxxxxxxxx010xxxxx0000111 (mask=0x0000707f match=0x00002007)
Cross-Chip Latency & Throughput (11 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes 45-Series | 3 | 1 | 1 | Andes45LSU | llvm_sched_models |
| SiFive 7-Series (U74) | 3 | 1 | 1 | PipeA | llvm_sched_models |
| Syntacore SCR7 | 3 | 1 | 1 | LSU | llvm_sched_models |
| SpacemiT X100 | 4 | 0.25 | 1 | SMTX100_LSQ | llvm_sched_models |
| SpacemiT X60 (K1) | 4 | 0.5 | 1 | SMX60_LS | llvm_sched_models |
| Tenstorrent Ascalon-X | 4 | 1 | 1 | AscalonLS | llvm_sched_models |
| XiangShan KunMingHu | 4 | 0.33 | 1 | XSPipeLDU | llvm_sched_models |
| SiFive P670 / P600 | 5 | 0.5 | 1 | SiFiveP600LDST | llvm_sched_models |
| SiFive P870 / P800 | 5 | 0.33 | 1 | SiFiveP800Load | llvm_sched_models |
| XiangShan NanHu | 5 | 0.5 | 1 | XS2LD | llvm_sched_models |
| MIPS P8700 (RISC-V) | 8 | 1 | 1 | p8700IssueLSU | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | xxxxxxxxxxxxxxxxx010xxxxx0000111 | 0x0000707f / 0x00002007 |
Operands
| Name | Description |
|---|---|
imm | bits [31:20], sign-extended |
xs1 | bits [19:15] |
fd | bits [11:7] |
Reference Notes
The `flw` instruction loads a single-precision floating-point value from memory at address `xs1` + `imm` into floating-point register `fd`. It does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.