Set t1 to contents of effective memory double word address (64bit)
ld
Operands
reg, [imm(reg) / (reg) / imm / id / %lo(id)], (reg)Variants
- Set t1 to contents of effective memory double word address (64bit) ld t1, -100(t2)
- Load Double word : Set t1 to contents of effective memory word address (64bit) ld t1,(t2)
- Load Double word : Set t1 to contents of effective memory word address (64bit) ld t1,-100
- Load Double word : Set t1 to contents of effective memory word address (64bit) ld t1,10000000
- Load Double word : Set t1 to contents of memory word at label's address (64bit) ld t1,label
- Load from Address (64bit) ld t1,%lo(label)(t2)
This example runs on RV64.
# value is initialized and naturally aligned for this operation.
.data
value: .dword 0x0000000012345678
.text
la t0, value
# The initialized doubleword is 0x12345678; ld writes 305419896 to t2.
ld t2, 0(t0)