1*ff7cea8cSRafael Espindola // RUN: %clang_cc1 -emit-llvm %s -o -
217db0389SEric Christopher // PR1378
317db0389SEric Christopher 
417db0389SEric Christopher typedef float v4sf __attribute__((vector_size(16)));
517db0389SEric Christopher 
617db0389SEric Christopher typedef v4sf float4;
717db0389SEric Christopher 
splat4(float a)817db0389SEric Christopher static float4 splat4(float a)
917db0389SEric Christopher {
1017db0389SEric Christopher   float4 tmp = {a,a,a,a};
1117db0389SEric Christopher   return tmp;
1217db0389SEric Christopher }
1317db0389SEric Christopher 
foo(float a)1417db0389SEric Christopher float4 foo(float a)
1517db0389SEric Christopher {
1617db0389SEric Christopher   return splat4(a);
1717db0389SEric Christopher }
18