annotate clang/test/CodeGenCXX/2007-05-03-VectorInit.cpp @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -emit-llvm %s -o -
anatofuz
parents:
diff changeset
2 // PR1378
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 typedef float v4sf __attribute__((vector_size(16)));
anatofuz
parents:
diff changeset
5
anatofuz
parents:
diff changeset
6 typedef v4sf float4;
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 static float4 splat4(float a)
anatofuz
parents:
diff changeset
9 {
anatofuz
parents:
diff changeset
10 float4 tmp = {a,a,a,a};
anatofuz
parents:
diff changeset
11 return tmp;
anatofuz
parents:
diff changeset
12 }
anatofuz
parents:
diff changeset
13
anatofuz
parents:
diff changeset
14 float4 foo(float a)
anatofuz
parents:
diff changeset
15 {
anatofuz
parents:
diff changeset
16 return splat4(a);
anatofuz
parents:
diff changeset
17 }