llvm.org GIT mirror llvm / 38e94b2
new testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36722 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 17 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: %llvmgxx %s -S -emit-llvm -O0 -o -
1 // PR1378
2
3 typedef float v4sf __attribute__((vector_size(16)));
4
5 typedef v4sf float4;
6
7 static float4 splat4(float a)
8 {
9 float4 tmp = {a,a,a,a};
10 return tmp;
11 }
12
13 float4 foo(float a)
14 {
15 return splat4(a);
16 }