fsd
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userDSummary
The fsd instruction stores a double-precision value from the floating-point registers to memory. It is guaranteed to execute atomically if the effective address is naturally aligned and XLEN≥64. It doesn't modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.
Syntax / Encoding
fsd fs2, imm(xs1) | xxxxxxxxxxxxxxxxx011xxxxx0100111 (mask=0x0000707f match=0x00003027)
Cross-Chip Latency & Throughput (10 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| Andes 45-Series | 1 | 1 | 1 | Andes45LSU | llvm_sched_models |
| MIPS P8700 (RISC-V) | 1 | 1 | 1 | p8700IssueLSU | llvm_sched_models |
| SiFive 7-Series (U74) | 1 | 1 | 1 | PipeA | llvm_sched_models |
| SiFive P670 / P600 | 1 | 0.5 | 1 | SiFiveP600LDST | llvm_sched_models |
| SiFive P870 / P800 | 1 | 0.5 | 1 | SiFiveP800LDST | llvm_sched_models |
| SpacemiT X100 | 1 | 0.25 | 1 | SMTX100_LSQ | llvm_sched_models |
| Tenstorrent Ascalon-X | 1 | 1 | 1 | AscalonLS | llvm_sched_models |
| XiangShan NanHu | 1 | 0.5 | 1 | XS2ST | llvm_sched_models |
| Syntacore SCR7 | 3 | 1 | 1 | LSU | llvm_sched_models |
| SpacemiT X60 (K1) | 4 | 0.5 | 1 | SMX60_LS | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | xxxxxxxxxxxxxxxxx011xxxxx0100111 | 0x0000707f / 0x00003027 |
Operands
| Name | Description |
|---|---|
imm | bits [31:25,11:7], sign-extended |
fs2 | bits [24:20] |
xs1 | bits [19:15] |
Reference Notes
The `fsd` instruction stores a double-precision value from the floating-point registers to memory. It is guaranteed to execute atomically if the effective address is naturally aligned and XLEN≥64. It doesn't modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.