vsm4k.vi

Vector SM4 key schedule with immediate

This instruction is defined by:

Encoding

svg

Synopsis

Performs SM4 key schedule operation on vector register vs2 using immediate value as round constant, storing results in vector register vd according to mask vm. This is used in SM4 block cipher key expansion.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<5> vs2 = $encoding[24:20];
Bits<5> imm = $encoding[19:15];
Bits<5> vd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original