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.
Indirect jump via table, save return address
CM.JALT (Zcmt) looks up target from JVT CSR table by index, writes pc+2 to x1(ra), then jumps. Reuses c.fsdsp encoding, incompatible with Zcd (C+D). Part of Zcmt, depends on Zca and Zicsr.
CM.JALT is the 16-bit encoding form for compressed table jump and link; its semantics and encodable register/immediate ranges must be read from the official Zc extension rules.
Understand this scenario with real code like «cm.jalt 5 # jump-and-link via table entry 5».
Understand this scenario with real code like «cm.jalt 5 # jump-and-link via table entry 5».
Understand this scenario with real code like «cm.jalt 5 # jump-and-link via table entry 5».
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.