Vector Absolute Value Saturated

vec_abss(arg1)

Each element of the result is the absolute value of the corresponding element of arg1. The arithmetic is saturated for integer types.

Result

arg1

Maps To

vector signed char

vector signed char

vspltisb
vsubsbs
vmaxsb

vector signed short

vector signed short

vspltisb
vsubshs
vmaxsh

vector signed long

vector signed long

vspltisb
vsubsws
vmaxsw