C.LD

Compressed Load Doubleword

C.LD rd', offset(rs1')

Loads a 64-bit value from memory (Compressed, RV64).

Details

Loads a 64-bit doubleword from memory at an 8-bit unsigned offset from rs1′ into rd′ (RV64).

Pseudocode Operation

R[rd'] = M[R[rs1'] + offset][63:0];

Example

C.LD rd', 0(a0)

Encoding

Binary Layout
?
31:16
011
15:13
c_uimm8hi
12:10
rs1_p
9:7
c_uimm8lo
6:5
rd_p
4:2
00
1:0
 
Format CL
Opcode 0x00006000
Extension C

Operands

  • rd'
    Dest (x8-x15)
  • rs1'
    Base (x8-x15)
  • offset
    Offset