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

vabd.vx

T1 riscv simd insn
Vector Single-Width Signed Integer Absolute Difference with Scalar
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zvabd
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZvabd

Summary

Computes the element-wise absolute difference of signed integer operands from vector register vs2 and scalar register xs1, and writes the SEW-bit results to vd according to mask vm. The scalar is sign-extended or truncated to SEW.

Syntax / Encoding

vabd.vx vd, vs2, xs1, vm | 010101xxxxxxxxxxx110xxxxx1010111 (mask=0xfc00707f match=0x54006057)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
32RV010101xxxxxxxxxxx110xxxxx10101110xfc00707f / 0x54006057

Operands

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

Reference Notes

Computes the element-wise absolute difference of signed integer operands from
vector register vs2 and scalar register xs1, and writes the SEW-bit results to
vd according to mask vm. The scalar is sign-extended or truncated to SEW.

Supports SEW of 8, 16, and 32, and SEW of 64 when Zve64x is implemented.