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.
16-bit bitwise NOT (one's complement)
C.NOT (Zcb, CU format) performs bitwise NOT on rsd' (XOR with -1). rsd' limited to x8-x15. Expands to xori rd',rd',-1. Part of Zcb, depends on Zca.
Shows only ISA-visible 16-bit encoding, operands, and state, not a pipeline, cache, or timing.
Continue to Commit result to reveal architectural state.
C.NOT's single rd'/rs1' field maps to x8-x15 and computes XOR with -1 in that same register.
Understand this scenario with real code like «c.not x10 # x10 = ~x10».
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.