What unit is the FLH offset in?
The offset is a byte offset encoded as a signed 12-bit immediate.
Load a 2-byte half-precision floating-point value from memory.
FLH uses opcode 0000111 (0x07), funct3 001. The rs1 field selects the integer base register, the immediate provides a byte offset, and rd selects the destination floating-point register.
FLH forms the effective address by adding a sign-extended 12-bit offset to x[rs1] and loads a 2-byte half-precision floating-point encoding from memory into f[rd]. Naturally aligned accesses have the architectural atomicity guarantee; misaligned behavior depends on the execution environment.
FLH 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 «flh f10, 0(x11) ; load half-precision from [x11]».
Understand this scenario with real code like «flh f10, 0(x11) ; load half-precision from [x11]».
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.