VMADC.VVM

Vector Add with Carry (Produce Mask)

VMADC.VVM vd, vs2, vs1, v0

Adds two vectors and a carry-in, producing the carry-out to the destination mask.

Details

Vector Add with Carry (Produce Mask): Adds two vectors and a carry-in, producing the carry-out to the destination mask. Operation: foreach(i < vl): vd[i] = carry_out(vs1[i] + vs2[i] + v0[i]);.

Pseudocode Operation

foreach(i < vl): vd[i] = carry_out(vs1[i] + vs2[i] + v0[i]);

Example

VMADC.VVM v1, v4, v2, v0

Encoding

Binary Layout
010001
31:26
0
25
vs2
24:20
vs1
19:15
000
14:12
vd
11:7
1010111
6:0
 
Format OPIVV
Opcode 0x57
Extension V

Operands

  • vd
    Dest Mask (Carry Out)
  • vs2
    Source vector register 2
  • vs1
    Source vector register 1
  • v0
    Carry-In Mask