vminuw

Vector Minimum Unsigned Word

vminuw vD, vA, vB

Selects minimum value per word (unsigned).

Details

Selects the minimum unsigned value for each corresponding word pair from vA and vB, storing the results in vD. This is a vector operation that performs 4 independent word-wise minimum comparisons in parallel. No condition flags or status fields are affected.

Pseudocode Operation

for i in 0 to 3 do
  vD[32*i:32*i+31] ← MIN_UNSIGNED(vA[32*i:32*i+31], vB[32*i:32*i+31])
end for

Programming Note

The vminuw instruction is used to perform element-wise minimum operations on unsigned words from two vectors. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The operation is performed in parallel across four elements per vector register.

Example

vminuw vd, va, vb

Encoding

Binary Layout
4
0
vD
6
vA
11
vB
16
1154
21
 
Format VA-form
Opcode 0x10000282
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B