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
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
minmax-loopend.c
blob
3a3b280c8042a3a501a28bc08bf4a73f3ecc10ce
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4
int
and_test
(
long
a
,
long
b
,
long
c
) {
5
int
cmp1
=
a
<
b
;
6
int
cmp2
=
a
<
c
;
7
return
cmp1
&
cmp2
;
8
}
9
10
int
ior_test
(
long
a
,
long
b
,
long
c
) {
11
int
cmp1
=
a
>
b
;
12
int
cmp2
=
a
>
c
;
13
return
cmp1
|
cmp2
;
14
}
15
16
/* { dg-final { scan-tree-dump-times "MIN_EXPR" 2 "optimized" } } */