Implicit conversions between vectors

Mark Shinwell shinwell@codesourcery.com
Thu Oct 12 15:03:00 GMT 2006


Andrew Pinski wrote:
> On Thu, 2006-10-12 at 13:03 +0100, Mark Shinwell wrote:
>> typedef __builtin_neon_qi int8x8_t      __attribute__ ((__vector_size__ (8)));
>> typedef __builtin_neon_hi int16x4_t     __attribute__ ((__vector_size__ (8)));
>> ...
>>
>> int8x8_t f (int16x4_t a)
>> {
>>    return a;
>> }
> 
> This should error out and it is a regression from previous versions (I
> can check which ones but I think 3.4.0 rejected it).  The two targets
> that I work on daily at work (including the language extension
> specifications), both say this is invalid code and should be rejected.

Thanks, will test properly and post to gcc-patches.

Mark



More information about the Gcc mailing list