l.d
Load floating point double precision
Loads a double-precision value into the FP register pair starting at the first register, from an address or a label.
Forms
Operands
$f2- An even-numbered floating-point register,
$f0to$f30. A double-precision value uses this register and the next odd-numbered register. $t2- Any general-purpose register,
$0to$31, using its numeric or named spelling, such as$8or$t0($zerois$0;$rais$31). imm- An immediate value: a signed 16-bit value (
-32768to32767) or a 32-bit value (-2147483648to4294967295). The size your value needs decides which real instructions the assembler uses. Open the row to see them for each size. imm32- A 32-bit immediate,
-2147483648to4294967295. A pseudo-instruction that takes one uses the register$atas a temporary, so$atloses the value it held. label- A named address in the program, such as the start of a loop or a variable in
.data.
.data
value: .double 3.5
.text
# Load the initialized value. Inspect $f2:$f3: double 3.5 (raw bits 0x400C000000000000).
la $t0, value
l.d $f2, 0($t0)