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/33562
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-lim-10.c
blob
ec609d81c68104c4a9f1b927eec5b50b15f9038c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-lim2-details" } */
3
4
int
*
l
, *
r
;
5
int
test_func
(
void
)
6
{
7
int
i
;
8
int
direction
;
9
static int
pos
;
10
11
pos
=
0
;
12
direction
=
1
;
13
14
for
(
i
=
0
;
i
<=
400
;
i
++ )
15
{
16
if
(
direction
==
0
)
17
pos
=
l
[
pos
];
18
else
19
pos
=
r
[
pos
];
20
21
if
(
pos
== -
1
)
22
{
23
pos
=
0
;
24
direction
= !
direction
;
25
}
26
}
27
return
i
;
28
}
29
30
/* { dg-final { scan-tree-dump "Executing store motion of pos" "lim2" } } */