Skip to content

VREDADD

Operation

Reduces active integer elements to one scalar sum.

Assembler Syntax

VREDADD.{B|W|L|Q}(z) Pn(p), Vn(v), Rn(r)

VREDADD.{B|W|L|Q}(z) Pn(p), <ea>(e), Rn(r)

Privilege

Unprivileged

Required CPUID flags

VECTOR

The governing predicate selects the source elements from Vn or the corresponding contiguous memory locations. The B, W, L, and Q forms add the selected elements modulo the element width and zero-extend the result to Rn. An empty integer selection produces zero.

The active word values v0, v2, v5, and v7 are folded from the zero identity modulo 65,536 (216); the sum is zero-extended into Rn.

VREDADD.W integer reduction

2.75in

Encodings

VREDADD.{B|W|L|Q}(z) Pn(p), Vn(v), Rn(r)

Format: Instruction format for VREDADD.{B|W|L|Q}(z) Pn(p), Vn(v), Rn(r)

Format: Instruction format for VREDADD.{B|W|L|Q}(z) Pn(p), Vn(v), Rn(r)

2.75in VREDADD.{B|W|L|Q}(z) Pn(p), <ea>(e), Rn(r)

Format: Instruction format for VREDADD.{B|W|L|Q}(z) Pn(p), <ea>(e), Rn(r)

Format: Instruction format for VREDADD.{B|W|L|Q}(z) Pn(p), <ea>(e), Rn(r)