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 sh, store lower 16 bits
C.SH (Zcb, CSH format) stores lower 16 bits of rs2' to address rs1' + zero-extended offset. rs1' and rs2' limited to x8-x15. Expands to sh rs2',uimm(rs1'). Offset is 1-bit unsigned ×2. Part of Zcb, depends on Zca.
C.SH is the 16-bit encoding form for compressed halfword store; its semantics and encodable register/immediate ranges must be read from the official C extension rules.
Understand this scenario with real code like «c.sh x9, 2(x10) # store halfword».
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.