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.
Restore ra and s0-s11 from stack and adjust sp
CM.POP (Zcmp) pops registers in {reg_list} from stack and increments sp by stack_adj. Used with CM.PUSH. Note: CM.POP does NOT execute ret — only restores registers and deallocates stack frame. Reuses c.fsdsp encoding, incompatible with Zcd. Part of Zcmp, depends on Zca.
CM.POP is the 16-bit encoding form for compressed pop multiple registers; its semantics and encodable register/immediate ranges must be read from the official Zc extension rules.
Understand this scenario with real code like «cm.pop {ra, s0-s5}, 64 # restore ra,s0-s5, sp+=64».
Understand this scenario with real code like «cm.pop {ra, s0-s5}, 64 # restore ra,s0-s5, sp+=64».
Understand this scenario with real code like «cm.pop {ra, s0-s5}, 64 # restore ra,s0-s5, sp+=64».
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.