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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
loop-unswitch-17.c
blob
4b806c475b1c32c8ab1ff148dabc04f696941360
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized -fno-tree-ch" } */
3
4
int
foo
(
int
a
)
5
{
6
do
7
{
8
if
(
a
==
1
)
9
return
0
;
10
switch
(
a
)
11
{
12
case
1
:
13
return
5
;
14
case
2
:
15
return
7
;
16
case
3
:
17
return
11
;
18
default
:;
19
}
20
}
21
while
(
1
);
22
}
23
24
/* { dg-final { scan-tree-dump-times "unswitching loop" 3 "unswitch" } } */