Changes in directory llvm/test/C++Frontend:
2007-05-03-VectorInit.cpp added (r1.1) --- Log message: new testcase --- Diffs of the changes: (+17 -0) 2007-05-03-VectorInit.cpp | 17 +++++++++++++++++ 1 files changed, 17 insertions(+) Index: llvm/test/C++Frontend/2007-05-03-VectorInit.cpp diff -c /dev/null llvm/test/C++Frontend/2007-05-03-VectorInit.cpp:1.1 *** /dev/null Thu May 3 19:51:33 2007 --- llvm/test/C++Frontend/2007-05-03-VectorInit.cpp Thu May 3 19:51:23 2007 *************** *** 0 **** --- 1,17 ---- + // RUN: %llvmgxx %s -S -emit-llvm -O0 -o - + // PR1378 + + typedef float v4sf __attribute__((vector_size(16))); + + typedef v4sf float4; + + static float4 splat4(float a) + { + float4 tmp = {a,a,a,a}; + return tmp; + } + + float4 foo(float a) + { + return splat4(a); + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits