Simple code-size saving instructions
Type: unprivileged
Zca
| Version | State | Ratified |
|---|---|---|
| 1.0.0 | ratified | 2023-04 |
Zcb has simple code-size saving instructions which are easy to implement on all CPUs. All proposed encodings are currently reserved for all architectures, and have no conflicts with any existing extensions.
The Zcb extension depends on the Zca extension.
As shown on the individual instruction pages, many of the instructions in Zcb depend upon another extension being implemented. For example, c.mul is only implemented if M or Zmmul is implemented, and c.sext.b is only implemented if Zbb is implemented.
c.lbu — Load unsigned byte, 16-bit encodingc.lh — Load signed halfword, 16-bit encodingc.lhu — Load unsigned halfword, 16-bit encodingc.mul — Multiply, 16-bit encodingc.not — Bitwise not, 16-bit encodingc.sb — Store unsigned byte, 16-bit encodingc.sext.b — Sign-extend byte, 16-bit encodingc.sext.h — Sign-extend halfword, 16-bit encodingc.sh — Store unsigned halfword, 16-bit encodingc.zext.b — Zero-extend byte, 16-bit encodingc.zext.h — Zero-extend halfword, 16-bit encodingc.zext.w — Zero-extend word, 16-bit encodingVersion af3eaf9+cheriot.f635218
Data from the RISC-V Unified Database, copyright RISC-V International and contributors.
CHERIoT extensions from the CHERIoT specification and Sail model, copyright Microsoft and the CHERIoT Platform contributors.
This site is provided as a community resource and is NOT affiliated with nor endorsed by RISC-V International.