ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 913 microarchs · 15,555 chips · 105 sources
Arch:
Tier:

vghsh.vv

T1 riscv simd insn
Vector Galois field hash
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvkg, Zkt-DIT
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvkg, Zkt-DIT

Summary

Performs a Galois field hash operation on vector register vs2 using vector register vs1 as the hash polynomial, storing results in vector register vd according to mask vm. This instruction is used in cryptographic hash functions and error detection algorithms.

Syntax / Encoding

vghsh.vv vd, vs2, vs1 | 1011001xxxxxxxxxx010xxxxx1110111 (mask=0xfe00707f match=0xb2002077)

Cross-Chip Latency & Throughput (2 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
SpacemiT X100—2—RVV 1.0, VLEN=256rvv_bench_timings
Tenstorrent Ascalon-X—1—RVV 1.0, VLEN=256rvv_bench_timings

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV1011001xxxxxxxxxx010xxxxx11101110xfe00707f / 0xb2002077

Operands

NameDescription
vs2bits [24:20]
vs1bits [19:15]
vdbits [11:7]

Reference Notes

Performs a Galois field hash operation on vector register vs2 using vector register vs1 as the hash polynomial, storing results in vector register vd according to mask vm. This instruction is used in cryptographic hash functions and error detection algorithms.