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 sign-extend halfword (bit 15 replicated)
C.SEXT.H (Zcb, CU format) sign-extends lower 16 bits of rsd' to XLEN (bit 15 replicated to upper bits). rsd' limited to x8-x15. Requires Zbb. Part of Zcb, depends on Zca and Zbb.
C.SEXT.H is the 16-bit encoding form for compressed sign-extend halfword; its semantics and encodable register/immediate ranges must be read from the official C extension rules.
Understand this scenario with real code like «c.sext.h x10 # x10 = EXTS(x10[15:0])».
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.