May the two register specifiers be equal?
CM.MVA01S may use equal sources, giving a0/a1 the same old value; CM.MVSA01 requires different destinations.
Move two s0-s7 registers into a0 and a1 (may be the same)
CM.MVA01S (Zcmp) writes r1s' into a0 and r2s' into a1; the sources are UABI s0-s7. The two sources may be the same, and 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.MVA01S is a Zcmp 16-bit register-move instruction: two UABI s0-s7 sources, which may be the same, write a0/a1.
RV32/RV64 Zcmp, old s0=0x12 and s1=0x34: cm.mva01s s0, s1 atomically writes a0=0x12 and a1=0x34, leaving sources unchanged.
RV32/RV64 Zcmp, old s0=0x12 and s1=0x34: cm.mva01s s0, s1 atomically writes a0=0x12 and a1=0x34, leaving sources unchanged.
CM.MVA01S may use equal sources, giving a0/a1 the same old value; CM.MVSA01 requires different destinations.
No. They encode UABI s0-s7: x8, x9, x18-x23. RV32E selections s2-s7 are reserved. Both register writes are atomically visible.