What unit is the FSH offset in?
The offset is a byte offset encoded as a signed 12-bit immediate.
Store a 2-byte half-precision floating-point value to memory.
FSH uses opcode 0100111 (0x27), funct3 001. The rs1 field selects the integer base register, rs2 selects the source floating-point register, and the immediate provides a byte offset.
FSH forms the effective address by adding a sign-extended 12-bit offset to x[rs1] and stores the 2-byte half-precision floating-point encoding from f[rs2] to memory. The store writes the format-width bits and performs no numeric conversion.
FSH is a half-precision memory instruction between floating-point registers and memory. Address calculation uses base plus signed 12-bit byte offset, like integer load/store instructions.
Understand this scenario with real code like «fsh f10, 4(x11) ; store lower 16 bits of f10 to [x11+4]».
Understand this scenario with real code like «fsh f10, 4(x11) ; store lower 16 bits of f10 to [x11+4]».
The offset is a byte offset encoded as a signed 12-bit immediate.
No. Memory instructions move the encoding bits for that format; use FCVT for format conversion.