ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

fcvt.d.s

T1 riscv fp insn
Floating-Point Convert Single-Precision to Double-Precision
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 D, Zdinx
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsD, Zdinx

Summary

The single-precision to double-precision conversion instruction, fcvt.d.s is encoded in the OP-FP major opcode space and both the source and destination are floating-point registers. The xs2 field encodes the datatype of the source, and the fmt field encodes the datatype of the destination. fcvt.d.s will never round.

Syntax / Encoding

fcvt.d.s fd, fs1, rm | 010000100000xxxxxxxxxxxxx1010011 (mask=0xfff0007f match=0x42000053)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010000100000xxxxxxxxxxxxx10100110xfff0007f / 0x42000053

Operands

NameDescription
fs1bits [19:15]
rmbits [14:12]
fdbits [11:7]

Reference Notes

The single-precision to double-precision conversion instruction, `fcvt.d.s` is encoded in the OP-FP
major opcode space and both the source and destination are floating-point registers. The `xs2` field
encodes the datatype of the source, and the `fmt` field encodes the datatype of the destination.
`fcvt.d.s` will never round.