[cfe-dev] ext_vector_type cg-gen crash on x86-64 and some questions on the ABI

Mattias Holm holm at liacs.nl
Tue Oct 20 22:48:04 PDT 2009


Chris Lattner wrote:
> On Oct 19, 2009, at 2:28 PM, Mattias Holm wrote:
> 
>> I have some code that simplified is:
>>
> 
> This seems to work with clang mainline, at least with 'clang t.c -c -O  
> -m64'

OK, great. I will update my clang to trunk.

>> 2. Sizeof (float3) returns 12 and not 16 as I would have guessed for
>> alignment reasons, why is this the case? Assuming you want to use SSE
>> for computing with the vectors, they must be aligned IIRC.
> 
> That is really bad, please file a bug.  We don't really maintain a  
> stable ABI for non-native vector types, so we can fix this.

Done, filed as bug #5265.

Regards,
Mattias




More information about the cfe-dev mailing list