ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

vmsbc.vv

T1 riscv simd insn
Vector integer subtract-with-borrow-out vector
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

Subtract from each element of vector register vs2 the respective element from vector register vs1, and write the respective borrow-out to mask register vd. There is no borrow-in. The borrow is defined to be 1 iff the difference, prior to truncation, is negative. vd.mask[i] = borrow_out(vs2[i] - vs1[i])

Syntax / Encoding

vmsbc.vv vd, vs2, vs1 | 0100111xxxxxxxxxx000xxxxx1010111 (mask=0xfe00707f match=0x4e000057)

Cross-Chip Latency & Throughput (6 cores)

MicroarchitectureLatency (cycles)Recip. TPuopsPortsSource
SiFive P870—1—RVV 1.0, VLEN=128rvv_bench_timings
SiFive X280—2.14—RVV 1.0, VLEN=512 (Tenstorrent Blackhole)rvv_bench_timings
SpacemiT X100—2—RVV 1.0, VLEN=256rvv_bench_timings
SpacemiT X60—2—RVV 1.0, VLEN=256rvv_bench_timings
Tenstorrent Ascalon-X—0.5—RVV 1.0, VLEN=256rvv_bench_timings
XuanTie C920v2—0.5—RVV 1.0, VLEN=128rvv_bench_timings

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV0100111xxxxxxxxxx000xxxxx10101110xfe00707f / 0x4e000057

Operands

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

Reference Notes

Subtract from each element of vector register vs2 the respective element from vector register vs1, and write the respective borrow-out to mask register vd. There is no borrow-in. The borrow is defined to be 1 iff the difference, prior to truncation, is negative. `vd.mask[i] = borrow_out(vs2[i] - vs1[i])`