← Home

vsm3c.vi

Vector SM3 compression

Performs two rounds of SM3 compression. The current state of eight 32-bit words is read as an element group from vd, and eight 32-bit message words are read as an element group from vs2, of which only four are used. The next state of eight 32-bit words is written to vd. The 5-bit imm gives the round group, 0-31, that selects which two rounds are performed; for example, imm=1 performs rounds 2 and 3.

This instruction has data-independent execution timing.

Assembly format

vsm3c.vi vd, vs2, imm

Encoding

313029282726252423222120191817161514131211109876543210
1010111vs2imm010vd1110111

Decode variables

VariableBitsWidth
vs2[24:20]5
imm[19:15]5
vd[11:7]5

No execution pseudocode is available for this instruction.

Defined by

Zvksh

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.