Is VSM4R.VV an element-wise masked operation?
No. It is an element-group crypto instruction and the official syntax has no vm.
Performs four SM4 rounds on each active 128-bit state group using the corresponding vector round-key group.
Syntax: vsm4r.vv vd, vs2; vd supplies four current-state words and receives the next state; the corresponding vs2 group supplies four round keys. Registers are v0–v31; no v0.t operand.
32-bit OP-VE: funct6=101000, vm=1, fixed vs1 field=10000, OPMVV=010, opcode=1110111. Zvksed depends on Zve32x.
Perform four rounds: B=x1 XOR x2 XOR x3 XOR rk; S=byte-wise SM4 S-box(B); next word=x0 XOR S XOR ROL32(S,2/10/18/24). Decryption supplies keys in reverse order.
SEW=32, EGS=4, EGW=128. vl/vstart not divisible by four or other SEWs are reserved. LMUL*VLEN<128 raises illegal-instruction even at vl=0. Equal-width vd/vs2 overlap reads original values; groups follow LMUL alignment.
Require enabled vector state and valid vtype. Process active groups only; preserve prestart and apply vta to tails. vstart≥vl changes no destination; success clears vstart. Nonzero vstart assumes implementation support. Execution latency must be data-independent.
VSM4R.VV performs four SM4 rounds, reading four state words from vd and four round keys from the corresponding vs2 group, then replacing vd. SEW=32, EGS=4, EGW=128; vm=1 is fixed. Decryption supplies keys in reverse order.
This bounded model shows official ISA-visible data flow for one element group; it does not model a cryptographic protocol or microarchitecture.
Fixed vm=1, OP-VE, OPMVV; EGS=4, EGW=128.
Lists below run from low to high element index; only the active group is shown and tu preserves tails. vd[x0..x3]=[0,1,2,3]; vs2[rk0..rk3]=[4,5,6,7]. .vv reads the vs2 round-key group corresponding to the current vd state group.
OP-VE -> funct6 101000 -> vsm4r.vv
VSM4R.VV is an SM4 vector crypto instruction executed over element groups, not an ordinary independent per-element integer operation.
Syntax: vsm4r.vv vd, vs2; vd supplies four current-state words and receives the next state; the corresponding vs2 group supplies four round keys. Registers are v0–v31; no v0.t operand.
32-bit OP-VE: funct6=101000, vm=1, fixed vs1 field=10000, OPMVV=010, opcode=1110111. Zvksed depends on Zve32x.
Perform four rounds: B=x1 XOR x2 XOR x3 XOR rk; S=byte-wise SM4 S-box(B); next word=x0 XOR S XOR ROL32(S,2/10/18/24). Decryption supplies keys in reverse order.
SEW=32, EGS=4, EGW=128. vl/vstart not divisible by four or other SEWs are reserved. LMUL*VLEN<128 raises illegal-instruction even at vl=0. Equal-width vd/vs2 overlap reads original values; groups follow LMUL alignment.
Require enabled vector state and valid vtype. Process active groups only; preserve prestart and apply vta to tails. vstart≥vl changes no destination; success clears vstart. Nonzero vstart assumes implementation support. Execution latency must be data-independent.
Enable the listed extension and vector state, with legal vtype, SEW=32, VLEN=256, LMUL=1, vl=4, vstart=0 and tu. Initialize the input groups named in the syntax. Follow the element-group data flow; the animation lists initial values and results. Success resets vstart=0.
Enable the listed extension and vector state, with legal vtype, SEW=32, VLEN=256, LMUL=1, vl=4, vstart=0 and tu. Initialize the input groups named in the syntax. Follow the element-group data flow; the animation lists initial values and results. Success resets vstart=0.
No. It is an element-group crypto instruction and the official syntax has no vm.
SEW must be 32 and LMUL*VLEN must cover a 128-bit element group.