[cfe-dev] clang vector_size attribute compatibilty with gcc on x86

Marc Glisse marc.glisse at inria.fr
Thu Jan 10 00:05:10 PST 2013


On Wed, 9 Jan 2013, SENTHIL KUMAR THANGAVELU wrote:

> Hello all,
> I have attached the test case for which variable with attribute 
> vector_size when passed by value from clang to gcc or vice versa is 
> causing compatibility issue. Incase of clang for vector_size attr, SIMD 
> instructions are emitted as follows
> movaps -0x18(%ebp),%xmm0
> movdqa %xmm0,-0x28(%ebp)
> clang sends vector data by value, using vector registers, in the above 
> case xmm0. gcc always uses stack to pass vector data by value for 
> vector_size attr vars (even with -O3).

No it doesn't.

-- 
Marc Glisse



More information about the cfe-dev mailing list