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'; both destination registers are from s0-s7 and must be different. It is used to save a0/a1 values into s0-s7. The instruction reuses c.fsdsp encodings, is incompatible with Zcd, belongs to Zcmp, and depends on Zca.
CM.MVSA01 is a Zcmp 16-bit register-move instruction whose direction is from a0/a1 into two different s0-s7 destination registers.
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.