Webcentive RISC-V Reference

fsq

Floating-Point Store Quad-Precision

Extension
Q
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
fsq fs2, imm(xs1)
Length
32-bit

Encoding

31252420191514121176210
imm[11:5]rs2rs1100imm[4:0]0100111

Match 0x00004027, mask 0x0000707f. Source: fsq imm12hi rs1 rs2 imm12lo 14..12=4 6..2=0x09 1..0=3 in riscv-opcodes/extensions/rv_q.

FieldBitsriscv-opcodes name
imm[11:5]31:25imm12hi
rs224:20rs2
rs119:15rs1
imm[4:0]11:7imm12lo

Description

The fsq instruction stores a quad-precision floating-point value in fs2 to memory at address xs1 + imm. It does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.

fsq is only guaranteed to execute atomically if the effective address is naturally aligned and XLEN=128.

Description from riscv-unified-db, reformatted.

Specification and related pages