repo.or.cz
/
official-gcc
/
graphite-test-results.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git]
/
gcc
/
testsuite
/
gcc.dg
/
graphite
/
id-pr46845.c
blob
f4da78eda35e566aa56f30b433d2d15cf33677f0
1
/* { dg-options "-O2 -ffast-math -fgraphite-identity -w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */
2
3
typedef
float
V2SF
__attribute__
((
vector_size
(
128
)));
4
5
V2SF
6
foo
(
int
x
,
V2SF a
)
7
{
8
V2SF b
;
9
if
(
x
&
42
)
10
b
=
a
;
11
else
12
b
=
a
+ (
V2SF
) {
1.0
f
/
0.0
f
-
1.0
f
/
0.0
f
,
1.0
f
/
0.0
f
-
1.0
f
/
0.0
f
};
13
while
(
x
--)
14
a
+=
b
;
15
16
return
a
;
17
}