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.
Move a0 and a1 into two different s0-s7 registers
CM.MVSA01 (Zcmp) writes a0 into r1s' and a1 into r2s'; the destinations are UABI s0-s7 and must differ. The two writes are atomically visible. On RV32E, encodings selecting s2-s7 for either specifier are reserved. It reuses c.fsdsp encodings, is incompatible with Zcd, and Zcmp depends on Zca.
Shows only official compressed fields, conditions, and architectural state; it does not model a pipeline, cache, or timing.
Zcmp depends on Zca and is incompatible with Zcd; RV32E reserves s2-s7 specifiers.
CM.MVSA01 is a Zcmp 16-bit register-move instruction: a0/a1 atomically write two distinct UABI s0-s7 destinations.
Understand this scenario with real code like «cm.mvsa01 s0, s1 # s0 = a0; s1 = a1».
Understand this scenario with real code like «cm.mvsa01 s0, s1 # s0 = a0; s1 = a1».
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.