vaddubm
Vector Add Unsigned Byte Modulo
vaddubm vD, vA, vB
Adds the contents of two vector registers and updates the result in another vector register, modulo operation for bytes.
Details
For vaddubm, each byte element of VSR[VRA+32] is added to the corresponding byte element of VSR[VRB+32], and the low-order 8 bits of the result are placed into the corresponding byte element of VSR[VRT+32].
Pseudocode Operation
Programming Note
vaddubm can be used for unsigned or signed integers.
Example
vaddubm vd, va, vb
Encoding
Binary Layout
4
0
vD
6
vA
30
vB
31
0
Operands
-
vD
Target -
vA
Src A -
vB
Src B -
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register