← Home

vsm4r.vv

Vector SM4 rounds

Performs four rounds of SM4 encryption or decryption. The four words of current state are read as a four-element group from vd, and the round keys are read from the corresponding four-element group in vs2. The next four words of state are written to vd.

This instruction has data-independent execution timing.

Assembly format

vsm4r.vv vd, vs2

Encoding

313029282726252423222120191817161514131211109876543210
1010001vs210000010vd1110111

Decode variables

VariableBitsWidth
vs2[24:20]5
vd[11:7]5

No execution pseudocode is available for this instruction.

Defined by

Zvks or Zvksed

Access

SUVSVU
AlwaysAlwaysAlwaysAlways

Version 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.