fmul.d
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userD, ZdinxSummary
The fmul.d instruction performs the double-precision floating-point multiplication between fs1 and fs2. It is defined analogously to its single-precision counterpart, but operates on double-precision operands and produces double-precision results.
Syntax / Encoding
fmul.d fd, fs1, fs2, rm | 0001001xxxxxxxxxxxxxxxxxx1010011 (mask=0xfe00007f match=0x12000053)
Cross-Chip Latency & Throughput (13 cores)
| Microarchitecture | Latency (cycles) | Recip. TP | uops | Ports | Source |
|---|---|---|---|---|---|
| SiFive 7-Series (U74) | 1 | 1 | 1 | PipeB | llvm_sched_models |
| SiFive P670 / P600 | 3 | 0.5 | 1 | SiFiveP600FloatArith | llvm_sched_models |
| SiFive P870 / P800 | 3 | 0.5 | 1 | SiFiveP800FloatArith | llvm_sched_models |
| Tenstorrent Ascalon-X | 3 | 1 | 1 | AscalonFP | llvm_sched_models |
| XiangShan NanHu | 3 | 0.25 | 1 | XS2FMAC | llvm_sched_models |
| Andes 45-Series | 4 | 1 | 1 | Andes45FMAC | llvm_sched_models |
| SiFive P470 / P400 | 4 | 1 | 1 | SiFiveP400FloatArith | llvm_sched_models |
| SiFive P550 / P500 | 4 | 1 | 1 | SiFiveP500FloatArith | llvm_sched_models |
| SpacemiT X100 | 4 | 0.25 | 1 | SMTX100_FQ | llvm_sched_models |
| XiangShan KunMingHu | 4 | 0.33 | 1 | XSPipeGroupFMA | llvm_sched_models |
| MIPS P8700 (RISC-V) | 5 | 1 | 2 | p8700FpuLong+p8700FpuApu | llvm_sched_models |
| SpacemiT X60 (K1) | 5 | 1 | 1 | SMX60_FP | llvm_sched_models |
| Syntacore SCR7 | 6 | 1 | 2 | FPU_IS+FMA | llvm_sched_models |
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 32 | RV | 0001001xxxxxxxxxxxxxxxxxx1010011 | 0xfe00007f / 0x12000053 |
Operands
| Name | Description |
|---|---|
fs2 | bits [24:20] |
fs1 | bits [19:15] |
rm | bits [14:12] |
fd | bits [11:7] |
Reference Notes
The `fmul.d` instruction performs the double-precision floating-point multiplication between `fs1` and `fs2`. It is defined analogously to its single-precision counterpart, but operates on double-precision operands and produces double-precision results.