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
PR tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
vect
/
vect-outer-4j.c
blob
fcfec3cf29a71888d1a0ebcc48e09ba41b390d17
1
/* { dg-do compile } */
2
3
#define N 96
4
#define M 128
5
unsigned char
in
[
N
+
M
];
6
unsigned short
out
[
N
];
7
8
/* Outer-loop vectorization. */
9
10
void
11
foo
(){
12
int
i
,
j
;
13
unsigned short
diff
;
14
15
for
(
i
=
0
;
i
<
N
;
i
++) {
16
diff
=
0
;
17
for
(
j
=
0
;
j
<
M
;
j
+=
8
) {
18
diff
+=
in
[
j
+
i
];
19
}
20
out
[
i
]=
diff
;
21
}
22
}
23
24
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { target vect_unpack } } } */