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
[RTL ifcvt] PR 67786, 67787: Check that intermediate instructions in the basic block...
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
20050105-1.c
blob
58a75150bdb1a637ff4b49a4a04ea210111e317a
1
/* PR rtl-optimization/18861 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
5
extern
void
abort
(
void
);
6
7
int
8
foo
(
int
code
)
9
{
10
if
(
code
>=
3
)
11
switch
(
code
)
12
{
13
case
3
:
return
4
;
14
case
4
:
return
3
;
15
case
5
:
return
6
;
16
case
6
:
return
7
;
17
case
7
:
return
8
;
18
case
8
:
return
5
;
19
default
:
abort
();
20
}
21
switch
(
code
)
22
{
23
case
3
:
return
4
;
24
case
4
:
return
3
;
25
case
5
:
return
6
;
26
case
6
:
return
7
;
27
case
7
:
return
8
;
28
case
8
:
return
5
;
29
default
:
abort
();
30
}
31
}