Zbkb instructions
Bit-manipulation for Cryptography
This extension contains instructions essential for implementing common operations in cryptographic workloads.
Extension description from riscv-unified-db, reformatted.
Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zbkb.adoc.
Instructions (16)
| Mnemonic | Name (riscv-unified-db) | XLEN |
|---|---|---|
andn | AND with inverted operand | RV32 and RV64 |
brev8 | Reverse bits in bytes | RV32 and RV64 |
orn | OR with inverted operand | RV32 and RV64 |
pack | No synopsis available | RV32 and RV64 |
packh | No synopsis available | RV32 and RV64 |
packw | No synopsis available | RV64 only |
rev8 | Byte-reverse register (RV64 encoding) | RV32 and RV64 |
rol | Rotate left (Register) | RV32 and RV64 |
rolw | Rotate left word (Register) | RV64 only |
ror | Rotate right (Register) | RV32 and RV64 |
rori | Rotate right (Immediate) | RV32 and RV64 |
roriw | Rotate right word (Immediate) | RV64 only |
rorw | Rotate right word (Register) | RV64 only |
unzip | Bit deinterleave | RV32 only |
xnor | Exclusive NOR | RV32 and RV64 |
zip | Bit interleave | RV32 only |