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 inline-asm/84742
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
i386
/
pr78035.c
blob
2e673a8ce2d7c89b4fc626dd157c1532cfa1593c
1
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
4
extern
int
a
;
5
extern
int
b
;
6
extern
int
c
;
7
8
int
foo
(
int
choose_a
)
9
{
10
int
*
p
;
11
if
(
choose_a
)
12
p
= &
a
;
13
else
14
p
= &
b
;
15
return
p
!= &
c
;
16
}
17
18
int
bar
()
19
{
20
return
&
a
!= &
c
;
21
}
22
23
/* We should not optimize away either comparison. */
24
/* { dg-final { scan-assembler-times "cmp" 2 } } */