vsubuhs
Vector Subtract Unsigned Halfword Saturate
Subtracts 8 unsigned halfwords with saturation.
Details
The Vector Subtract Unsigned Halfword Saturate instruction (vsubuhs) performs an unsigned subtraction of each halfword element from two vector registers. If the result exceeds the maximum value for a halfword, it is saturated to that maximum value.
Pseudocode Operation
Programming Note
This instruction is useful for performing element-wise unsigned subtraction on vectors with saturation to handle overflow. Ensure that the vector registers are properly aligned and that the VEC bit in the MSR register is set to 1. Be aware of potential performance implications due to saturation handling, which may affect throughput.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B