Can VAESEM.VV always use a v0.t mask?
No. This element-group crypto instruction has no vm operand; ordinary RVV mask syntax should not be added to examples.
Vector AES middle-round encryption: transform 128-bit state groups in vd with corresponding round-key groups from vs2.
vd and vs2 select vector registers v0–v31; there is no immediate or third source operand. There is no v0.t mask operand; v0 is writable as ordinary data.
32-bit OP-VE: funct6=101000, vm=1, vs2[24:20], vs1=00010[19:15], funct3=010, vd[11:7], opcode=1110111.
Requires enabled Zvkned and vector state, SEW=32, EGW=128, EGS=4. Apply SubBytes → ShiftRows → MixColumns to each active vd state group, then XOR its corresponding vs2 key group; equal-width source/destination overlap is allowed.
Process groups vstart/4 through vl/4−1. Encodings with vl/vstart not divisible by 4, or SEW≠32, are reserved. LMUL*VLEN<128 raises an illegal-instruction exception even if vl=0. Register groups follow V-extension alignment rules; execution latency must not depend on operand data.
vaesem.vv performs AES middle-round encryption. Each 128-bit element group in vd is transformed using SubBytes+ShiftRows+MixColumns and XORed with the corresponding 128-bit round-key element group from vs2; the new state is written back to vd. SEW must be 32.
This bounded model shows only official ISA-visible fields, state, and conditions; it does not model a complete cryptographic protocol or microarchitecture.
state -> SubBytes, ShiftRows, MixColumns, then AddRoundKey -> vd
Vector AES middle-round encryption: transform 128-bit state groups in vd with corresponding round-key groups from vs2.
vd and vs2 select vector registers v0–v31; there is no immediate or third source operand. There is no v0.t mask operand; v0 is writable as ordinary data.
32-bit OP-VE: funct6=101000, vm=1, vs2[24:20], vs1=00010[19:15], funct3=010, vd[11:7], opcode=1110111.
Requires enabled Zvkned and vector state, SEW=32, EGW=128, EGS=4. Apply SubBytes → ShiftRows → MixColumns to each active vd state group, then XOR its corresponding vs2 key group; equal-width source/destination overlap is allowed.
Process groups vstart/4 through vl/4−1. Encodings with vl/vstart not divisible by 4, or SEW≠32, are reserved. LMUL*VLEN<128 raises an illegal-instruction exception even if vl=0. Register groups follow V-extension alignment rules; execution latency must not depend on operand data.
With Zvkned and vector state enabled, VLEN=128, LMUL=1, SEW=32, vl=4, vstart=0, and zero input groups in v8 and v16, the basic example's round number and this page's rules produce v8=0x63636363636363636363636363636363.
With Zvkned and vector state enabled, VLEN=128, LMUL=1, SEW=32, vl=4, vstart=0, and zero input groups in v8 and v16, the basic example's round number and this page's rules produce v8=0x63636363636363636363636363636363.
No. This element-group crypto instruction has no vm operand; ordinary RVV mask syntax should not be added to examples.
Defined only for SEW=32, with EGW=128 and EGS=4. Other SEW values, or vl/vstart not divisible by 4, are reserved. LMUL*VLEN<128 raises an illegal-instruction exception even if vl=0.