vsha2ms.vv
Vector SHA-2 message schedule
- Extension
- Zvkn, Zvknha, Zvknhb
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
vsha2ms.vv vd, vs2, vs1- Length
- 32-bit
Encoding
| 3126 | 25 | 2420 | 1915 | 1412 | 117 | 60 | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 101101 | 1 | vs2 | vs1 | 010 | vd | 1110111 | |||||||||||||||||||||||||
Match 0xb6002077, mask 0xfe00707f. Source: vsha2ms.vv 31..26=0x2D 25=1 vs2 vs1 14..12=0x2 vd 6..0=0x77 in riscv-opcodes/extensions/rv_zvknha.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| vs2 | 24:20 | vs2 |
| vs1 | 19:15 | vs1 |
| vd | 11:7 | vd |
Description
Performs four rounds of SHA-2 message schedule expansion (SHA-256 when SEW=32; SHA-512 when SEW=64, which requires Zvknhb). Eleven of the last 16 message schedule words, taken from vd (oldest), vs2, and vs1 (most recent), are processed to produce the next four message schedule words, which are written to vd.
Description from riscv-unified-db, reformatted.
Specification and related pages
- The RISC-V Instruction Set Manual: src/unpriv/zvk.adoc (Zvkn)
- The RISC-V Instruction Set Manual: src/unpriv/zvk.adoc (Zvknha)
- The RISC-V Instruction Set Manual: src/unpriv/zvk.adoc (Zvknhb)
- riscv-unified-db: spec/std/isa/inst/Zvknha/vsha2ms.vv.yaml
- Zvkn instruction listing
- Zvknha instruction listing
- Zvknhb instruction listing