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

fcvt.s.d

T1 riscv fp insn
Floating-Point Convert Double-Precision to Single-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 fcvt.s.d instruction converts a double-precision floating-point number to a single-precision floating-point number. This 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.s.d rounds according to the rm field.

Syntax / Encoding

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

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010000000001xxxxxxxxxxxxx10100110xfff0007f / 0x40100053

Operands

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

Reference Notes

The `fcvt.s.d` instruction converts a double-precision floating-point number to a single-precision floating-point
number. This 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.s.d` rounds according to the `rm` field.