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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
declare-simd.c
blob
1c71b60c97427705e2751088e24840e2613b4f03
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fopenmp-simd" } */
3
4
#pragma omp declare simd linear (p2, p3)
5
extern
void
fn2
(
float
p1
,
float
*
p2
,
float
*
p3
);
6
7
float
*
a
, *
b
;
8
void
fn1
(
float
*
p1
)
9
{
10
int
i
;
11
#pragma omp simd
12
for
(
i
=
0
;
i
<
1000
;
i
++)
13
fn2
(
p1
[
i
],
a
+
i
,
b
+
i
);
14
}