repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
A8.6.92 MCR (Encoding A1): if coproc == '101x' then SEE "Advanced SIMD and VFP"
[llvm/stm8.git]
/
test
/
FrontendC++
/
2007-05-03-VectorInit.cpp
blob
af56d3a08a8440105a278c23dc3d14b0a9f98b40
1
// RUN: %llvmgxx %s -S -O0 -o -
2
// PR1378
3
4
typedef
float
v4sf
__attribute__
((
vector_size
(
16
)));
5
6
typedef
v4sf float4
;
7
8
static
float4
splat4
(
float
a
)
9
{
10
float4 tmp
= {
a
,
a
,
a
,
a
};
11
return
tmp
;
12
}
13
14
float4
foo
(
float
a
)
15
{
16
return
splat4
(
a
);
17
}