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.
16-bit encoding of lhu, zero-extended halfword load
C.LHU (Zcb, CLH format) loads a halfword from rs1' + zero-extended offset into rd', zero-extended to XLEN. rd' and rs1' limited to x8-x15. Expands to lhu rd',uimm(rs1'). Part of Zcb, depends on Zca.
C.LHU is the 16-bit encoding form for compressed unsigned halfword 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.lhu x9, 2(x10) # zero-extended halfword load».
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.