recent troubles with float vectors & bitwise ops

tbp tbptbp@gmail.com
Thu Aug 23 11:32:00 GMT 2007


Andrew Pinski wrote:
> Which hardware (remember GCC is a generic compiler)?  VMX/Altivec and
> SPU actually does not have different instructions for bitwise
> and/ior/xor for different vector types (it is all the same
> instruction).  I have ran into ICEs with even bitwise on vector
> float/double on x86 also in the past which is the other reason why I
> disabled them.  Since this is an extension, it would be nice if it was
> nicely defined extension which means disabling them for vector
> float/double.
It *was* neatly defined:
"The types defined in this manner can be used with a subset of normal 
C operations. Currently, GCC will allow using the following operators on 
these types: +, -, *, /, unary minus, ^, |, &, ~.".


So can you, pretty please, also patch the documentation and maybe point 
to the Altivec spec as it's obviously the only one relevant no matter 
what platform you're on?



More information about the Gcc mailing list