FSH

Float Store Halfword

FSH rs2, offset(rs1)

Stores a 16-bit half-precision float to memory.

Encoding

Binary Layout
imm12hi
31:25
rs2
24:20
rs1
19:15
001
14:12
imm12lo
11:7
0100111
6:0
 
Format S-Type
Opcode 0x00001027
Extension Zfhmin

Operands

  • rs2
    Source
  • rs1
    Base
  • offset
    Offset

Example

FSH f1, 0(x10)

// Store 16-bit float.

Related

More in Zfhmin

Description

Stores the low 16 bits of floating-point register rs2 to memory at rs1 + sext(offset); the other bits of rs2 are ignored. The bits are not modified, so NaN payloads are preserved. Atomic only if naturally aligned.

Operation

M[R[rs1] + sext(offset)][15:0] = F[rs2];