repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
gcc.target
/
i386
/
20020616-1.c
blob
6db7842559622b9aa16f0e7c6b11eb1445580bc4
1
/* PR opt/6722 */
2
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
3
/* { dg-options "-O2" } */
4
5
register
int
k
asm
(
"%ebx"
);
6
7
void
__attribute__
((
noinline
))
8
foo
()
9
{
10
k
=
1
;
11
}
12
13
void
test
()
14
{
15
int
i
;
16
for
(
i
=
0
;
i
<
10
;
i
+=
k
)
17
{
18
k
=
0
;
19
foo
();
20
}
21
}
22
23
int
main
()
24
{
25
int
old
=
k
;
26
test
();
27
k
=
old
;
28
return
0
;
29
}