Webcentive RISC-V Reference

Zks instructions

ShangMi Algorithm Suite

This extension is shorthand for the following set of other extensions:

  • Zbkb
  • Zbkc
  • Zbkx
  • Zksed
  • Zksh

Extension description from riscv-unified-db, reformatted.

Specification chapter: The RISC-V Instruction Set Manual, src/unpriv/zk.adoc.

Instructions (24)

MnemonicName (riscv-unified-db)XLEN
andnAND with inverted operandRV32 and RV64
brev8Reverse bits in bytesRV32 and RV64
clmulCarry-less multiply (low-part)RV32 and RV64
clmulhCarry-less multiply (high-part)RV32 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
sm3p0No synopsis availableRV32 and RV64
sm3p1No synopsis availableRV32 and RV64
sm4edNo synopsis availableRV32 and RV64
sm4ksNo synopsis availableRV32 and RV64
unzipBit deinterleaveRV32 only
xnorExclusive NORRV32 and RV64
xperm4Crossbar permutation (nibbles)RV32 and RV64
xperm8Crossbar permutation (bytes)RV32 and RV64
zipBit interleaveRV32 only