Jeff Law wrote:
For ppc64le is that the build was done with p8, but there is one
function (__builtin_altivec_vadub) that requires p9. This seems
like a package bug at first glance, not an LTO issue.
Yup __builtin_altivec_vadub is POWER9_VECTOR only.
For P8/6 use something like this:
vmin = vec_min (a, b);
vmax = vec_max (a, b);
result = vec_sub (vmax, vmin);
executes in 4 cycles.