Skip to content

VADD

Operation

Adds corresponding active integer vector elements.

Assembler Syntax

VADD.{B|W|L|Q}(x) Pn(p), Vn(v), Vn(w)

VADD.{B|W|L|Q}(x) Pn(p), <ea>(e), Vn(v)

VADD.{B|W|L|Q}(x) Pn(p), Vn(v), <ea>(e)

Privilege

Unprivileged

Required CPUID flags

VECTOR

VADD applies selected integer addition independently to each active vector lane. The governing predicate selects active lanes; an inactive destination lane retains its previous value.

For B, W, L, and Q elements, each active result is the lane-width modular sum and no flag bank changes.

2.75in

Encodings

VADD.{B|W|L|Q}(x) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), Vn(v), Vn(w)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), Vn(v), Vn(w)

sizeallowed: 0x0..0x3 [reserved_vector_element_type]

2.75in VADD.{B|W|L|Q}(x) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), <ea>(e), Vn(v)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), <ea>(e), Vn(v)

sizeallowed: 0x0..0x3 [reserved_vector_element_type]

2.75in VADD.{B|W|L|Q}(x) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), Vn(v), <ea>(e)

Format: Instruction format for VADD.{B|W|L|Q}(x) Pn(p), Vn(v), <ea>(e)

sizeallowed: 0x0..0x3 [reserved_vector_element_type]

dstexcluded: immediate [invalid_destination]