C/C++ operator meaning is different between gcc generic vector type and altivec type

Hi Hubert:

Looks like the interpretation of ABI should be the opposite of your understanding.

“The ABI (as cited by Hubert) clearly means that all of the operators described there are to operate independently on each lane. Vector binary addition is not “sum across”, so why should vector <= mean vec_all_le (or vec_any_le, for that matter)? The result of <= should be a vector of booleans.


Jinsong Ji (¼Í½ðËÉ), PhD.

XL C/C++, XL Fortran Compiler Development
E-mail: jji@us.ibm.com

graycol.gifHubert Tong—10/18/2018 10:03:40 AM—The OpenPOWER ABI for Linux Supplement for the Power Architecture 64-bit ELF V2 ABI documents the fo