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

vnsra.wx

T1 riscv simd insn
Vector narrowing signed shift right arithmetic with scalar
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvl32b
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvl32b

Summary

Performs narrowing signed arithmetic right shift on double-width elements from vector register vs2 by shift amount from scalar register xs1 and stores results in vector register vd, using vector mask vm. The operation preserves the sign bit and writes a single-width destination.

Syntax / Encoding

vnsra.wx vd, vs2, xs1, vm | 101101xxxxxxxxxxx100xxxxx1010111 (mask=0xfc00707f match=0xb4004057)

Cross-Chip Latency & Throughput (8 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
Andes AX45MPV—2—RVV 1.0, VLEN=512rvv_bench_timings
SiFive P870—1.05—RVV 1.0, VLEN=128rvv_bench_timings
SiFive X280—4.14—RVV 1.0, VLEN=512 (Tenstorrent Blackhole)rvv_bench_timings
SpacemiT X100—4—RVV 1.0, VLEN=256rvv_bench_timings
SpacemiT X60—4—RVV 1.0, VLEN=256rvv_bench_timings
Tenstorrent Ascalon-X—0.5—RVV 1.0, VLEN=256rvv_bench_timings
XuanTie C908—4—RVV 1.0, VLEN=128 (Kendryte K230)rvv_bench_timings
XuanTie C920v2—2—RVV 1.0, VLEN=128rvv_bench_timings

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV101101xxxxxxxxxxx100xxxxx10101110xfc00707f / 0xb4004057

Operands

NameDescription
vmbits [25:25]
vs2bits [24:20]
xs1bits [19:15]
vdbits [11:7]

Reference Notes

Performs narrowing signed arithmetic right shift on double-width elements from vector register vs2 by shift amount from scalar register xs1 and stores results in vector register vd, using vector mask vm. The operation preserves the sign bit and writes a single-width destination.