Check vl first
The current vl determines the number of body elements. Typical code executes vsetvli, vsetivli, or vsetvl before this instruction.
Vector SHA-2 message schedule expansion producing the next four message words; Zvknha uses SEW=32 and Zvknhb supports SEW=32/64.
VSHA2MS.VV is a vector SHA-2 element-group instruction. It computes the next message-schedule words from the words held in vd, vs2, and vs1. Under Zvknha SEW must be 32; under Zvknhb SEW may be 32 or 64.
VSHA2MS.VV is a vector SHA-2 element-group instruction, not an ordinary per-element arithmetic operation and not a v0.t-masked operation.
When reading VSHA2MS.VV, do not stop at the mnemonic. Official V-extension semantics also depend on the current vl, vtype, and mask state. .vv: two vector sources participate element by element.
The current vl determines the number of body elements. Typical code executes vsetvli, vsetivli, or vsetvl before this instruction.
The current vtype supplies SEW, LMUL, tail policy, and mask policy; these affect element width, register-group size, and inactive/tail destination elements.
For ordinary vector instructions with vm, vm=0 uses v0 as the execution mask and vm=1 is unmasked. A few forms such as VMERGE use v0 as data-selection input.
Understand this scenario with real code like «vsha2ms.vv vd, vs2, vs1».
Understand this scenario with real code like «vsha2ms.vv vd, vs2, vs1».
No. The official syntax has no vm operand.
It comes from current vtype, but must satisfy the Zvknha/Zvknhb SEW restrictions.