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/81303
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr81620-2.c
blob
85a8e3508402a89f39903fa2456ca6047fe575e4
1
/* { dg-do run } */
2
/* { dg-options "-O3 -fno-tree-loop-vectorize -fdump-tree-pcom-details" } */
3
4
int
a
[
200
];
5
char
b
;
6
void
abort
(
void
);
7
8
int
main
() {
9
int
i
;
10
b
=
100
;
11
for
(;
b
;
b
--) {
12
a
[
b
] =
2
;
13
a
[
b
+
2
] =
1
;
14
}
15
16
if
(
a
[
0
] !=
0
||
a
[
1
] !=
2
||
a
[
2
] !=
2
)
17
abort
();
18
for
(
i
=
3
;
i
<
103
;
i
++)
19
if
(
a
[
i
] !=
1
)
20
abort
();
21
22
return
0
;
23
}
24
25
/* { dg-final { scan-tree-dump-times "Store-stores chain" 1 "pcom" } } */