vsaddu.vi

Vector Single-Width Saturating Add Unsigned with Immediate

This instruction is defined by:

Encoding

svg

Synopsis

Performs saturating unsigned addition on elements from vector register vs2 and immediate value imm and stores results in vector register vd, using vector mask vm. If the result would overflow the destination, the result is replaced with the closest representable value, and the vxsat bit is set.

Access

M HS U VS VU

Always

Always

Always

Always

Always

Decode Variables

Bits<1> vm = $encoding[25];
Bits<5> vs2 = $encoding[24:20];
signed Bits<5> imm = sext($encoding[19:15], 5);
Bits<5> vd = $encoding[11:7];

Execution

  • Pruned, XLEN == 64

  • Original