vsubsbs
Vector Subtract Signed Byte Saturate
Subtracts 16 signed bytes with saturation.
Details
The Vector Subtract Signed Byte Saturate instruction performs a subtract operation on corresponding bytes of two source vectors and writes the result to a destination vector. The subtraction is saturated, meaning that if the result overflows or underflows, it is clamped to the minimum or maximum value representable by an 8-bit signed integer.
Pseudocode Operation
Programming Note
This instruction is commonly used in applications requiring vectorized arithmetic operations on signed bytes, such as image processing or audio signal processing. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. The operation saturates results to prevent overflow or underflow, which can be crucial for maintaining data integrity in certain applications.
Example
Encoding
Operands
-
vD
Target -
vA
Src A -
vB
Src B