Webcentive RISC-V Reference

vgmul.vv

Vector multiply over GHASH Galois-field

Extension
Zvkg
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
vgmul.vv vd, vs2
Length
32-bit

Encoding

31262524201915141211760
1010001vs210001010vd1110111

Match 0xa208a077, mask 0xfe0ff07f. Source: vgmul.vv 31..26=0x28 25=1 vs2 19..15=0x11 14..12=0x2 vd 6..0=0x77 in riscv-opcodes/extensions/rv_zvkg.

FieldBitsriscv-opcodes name
vs224:20vs2
vd11:7vd

Description

Multiplies the 128-bit element groups in vd (multiplier) and vs2 (multiplicand) over GF(2128) and writes the product to vd. The multiplication is a carry-less multiply of two 128-bit polynomials modulo the GHASH polynomial x128 + x7 + x2 + x + 1. This is the same as vghsh.vv with a zero cipher text block.

Description from riscv-unified-db, reformatted.

Specification and related pages