Zcmt instructions
Table Jump
Zcmt adds the table jump instructions and also adds the jvt CSR. The jvt CSR requires a state enable if Smstateen is implemented. See csrs jvt for details.
This extension reuses some encodings from c.fsdsp. Therefore it is incompatible with Zcd, which is included when C and D extensions are both present.
Note: Zcmt is primarily targeted at embedded class CPUs due to implementation complexity. Additionally, it is not compatible with RVA profiles.
The Zcmt extension depends on the Zca and Zicsr extensions.
| RV32 |
|---|
| RV64 |
| Mnemonic |
| Instruction |
| yes |
| yes |
| cm.jt index |
| #insns cm jt |
| yes |
| yes |
| cm.jalt index |
| #insns cm jalt |
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zcmt.adoc.
Instructions (1)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
cm.jalt | Jump Via Table with Optional Link | RV32 and RV64 |