Patch for stricter implicit conversions between vectors

Paolo Bonzini
Tue Nov 14 12:36:00 GMT 2006

> - Disallows implicit conversions between generic vectors with differing
>   element types, even if implicit conversions exist between those element
>   types.

I would make this a bit more lax, allowing a conversion if the inner 
element types have the same mode (e.g. vector char -> vector unsigned char).

> - Modifies the Altivec intrinsic implementation to prevent similar errors
>   (which were occurring especially from built-in functions that were 
> supposed
>   to be returning things such as "vector bool int" as "vector signed int",
>   or similar).

You need parentheses around the macro implementations.


More information about the Gcc-patches mailing list