fsd
Store a double to memory
Stores the double-precision value in f1 at the address in t1 plus an offset.
Used in
- Floating point and the F and D extensionsRISC-V assembly
Forms
fsd , ()
Pseudo-instructions
The assembler turns these into one or more real instructions.
Store 64-bit value from f1 to effective memory word address
Store 64-bit value from f1 to effective memory word address using t3 as a temporary
-
Store to Address
Operands
f1- Any floating-point register,
f0tof31, or its named alias, such asft0,fa0orft11. imm12- A signed 12-bit immediate,
-2048to2047. t1- Any integer register,
x0tox31, or its named alias, such aszero,t0ort6. t2- An integer register. It may be the same register as
t1. imm32- A 32-bit immediate,
-2147483648to4294967295. t3- An integer register. It may be the same register as
t1. label- A named address in the program, such as the start of a loop or a variable in
.data.
# value is initialized and naturally aligned for this operation.
.data
value: .dword 0
.text
la t0, value
li t1, 42
fcvt.d.w f1, t1
# Store 42.0 (bytes 00 00 00 00 00 00 45 40) at value; inspect Memory.
fsd f1, 0(t0)