Is it always equivalent to a same-named 32-bit instruction?
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
RV64C: compressed 64-bit doubleword load; RV32 Zclsd: compressed load of a 64-bit value into an even/odd register pair.
C.LDSP uses the CI format and loads a 64-bit value from sp (x2) plus a zero-extended, 8-byte-scaled offset. In RV64C it writes any non-x0 rd; in RV32 Zclsd it writes an even/odd register pair and rd must be nonzero and even.
Shows only official 16-bit fields, address/immediate calculation, and architectural state; it does not simulate a pipeline, cache, endianness implementation, or timing.
The EEI choice affects this result only when the effective address is not divisible by 8; a naturally aligned access must not raise an address-misaligned exception.
C.LDSP is the 16-bit encoding form for compressed stack doubleword load; its semantics and encodable register/immediate ranges must be read from the official C extension rules.
Understand this scenario with real code like «c.ldsp x10, 16(sp) # x10 = *(sp+16)».
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
Many 16-bit encodings can represent only a compressed register subset or fixed registers such as sp, ra, a0/a1.