repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
openmp: Add testcases for omp_max_vf
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
bb-slp-54.c
blob
d05ce33310da6dcf84d2bcf51dc37aa25854e7e8
1
/* { dg-do compile } */
2
/* { dg-require-effective-target vect_double } */
3
4
double
a
[
2
],
b
[
2
],
c
[
2
];
5
6
void
foo
(
int
flag
)
7
{
8
double
tem1
,
tem2
;
9
if
(
flag
)
10
{
11
tem1
=
a
[
0
];
12
tem2
=
a
[
1
];
13
}
14
else
15
{
16
tem1
=
b
[
0
];
17
tem2
=
b
[
1
];
18
}
19
c
[
0
] =
tem1
;
20
c
[
1
] =
tem2
;
21
}
22
23
/* { dg-final { scan-tree-dump-times "transform load" 2 "slp2" } } */