flq
Floating-Point Load Quad-Precision
- Extension
- Q
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
flq fd, imm(xs1)- Length
- 32-bit
Encoding
| 3120 | 1915 | 1412 | 117 | 62 | 10 | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| imm[11:0] | rs1 | 100 | rd | 00001 | 11 | ||||||||||||||||||||||||||
Match 0x00004007, mask 0x0000707f. Source: flq rd rs1 imm12 14..12=4 6..2=0x01 1..0=3 in riscv-opcodes/extensions/rv_q.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| imm[11:0] | 31:20 | imm12 |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
Description
The flq instruction loads a quad-precision floating-point value from memory at address xs1 + imm into floating-point register fd.
It does not modify the bits being transferred; in particular, the payloads of non-canonical NaNs are preserved.
flq is only guaranteed to execute atomically if the effective address is naturally aligned and XLEN=128.
Description from riscv-unified-db, reformatted.