Webcentive RISC-V Reference

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)

MnemonicName (riscv-unified-db)XLEN
andnAND with inverted operandRV32 and RV64
brev8Reverse bits in bytesRV32 and RV64
ornOR with inverted operandRV32 and RV64
packNo synopsis availableRV32 and RV64
packhNo synopsis availableRV32 and RV64
packwNo synopsis availableRV64 only
rev8Byte-reverse register (RV64 encoding)RV32 and RV64
rolRotate left (Register)RV32 and RV64
rolwRotate left word (Register)RV64 only
rorRotate right (Register)RV32 and RV64
roriRotate right (Immediate)RV32 and RV64
roriwRotate right word (Immediate)RV64 only
rorwRotate right word (Register)RV64 only
unzipBit deinterleaveRV32 only
xnorExclusive NORRV32 and RV64
zipBit interleaveRV32 only