vmaxuw
Vector Maximum Unsigned Word
vmaxuw vD, vA, vB
Selects maximum value per word (unsigned).
Details
The vmaxuw instruction compares each unsigned word (32-bit) element in the vector registers specified by VRA and VRB. It selects the larger value for each corresponding pair of elements and stores the result in the vector register specified by VRT.
Pseudocode Operation
Programming Note
The vmaxuw instruction is used to perform element-wise comparison of unsigned 32-bit words in vector registers. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The operation does not require any specific alignment for the data being processed.
Example
vmaxuw vd, va, vb
Encoding
Binary Layout
4
0
vD
6
vA
11
vB
16
132
21
Operands
-
vD
Target -
vA
Src A -
vB
Src B