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

fsh

T1 riscv fp insn
Half-precision floating-point store
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zfbfmin, Zfhmin
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZfbfmin, Zfhmin

Summary

The fsh instruction stores a half-precision floating-point value from register _xd_ to memory at address _xs1_ + _imm_.

Syntax / Encoding

fsh fs2, imm(xs1) | xxxxxxxxxxxxxxxxx001xxxxx0100111 (mask=0x0000707f match=0x00001027)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RVxxxxxxxxxxxxxxxxx001xxxxx01001110x0000707f / 0x00001027

Operands

NameDescription
immbits [31:25,11:7], sign-extended
xs1bits [19:15]
fs2bits [24:20]

Reference Notes

The `fsh` instruction stores a half-precision floating-point value
from register _xd_ to memory at address _xs1_ + _imm_.

`fsh` does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.

`fsh` ignores all but the lower 16 bits in _fs2_.

`fsh` is only guaranteed to execute atomically if the effective address is naturally aligned.