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
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
div-cmp-2.c
blob
95e5400d777d07f181e9b2bbff957e5e3783cbc6
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -funsafe-math-optimizations -ffinite-math-only -fdump-tree-optimized-raw" } */
3
4
int
5
cmp_1
(
float
x
)
6
{
7
return
5
/
x
>=
0
;
8
}
9
10
int
11
cmp_2
(
float
x
)
12
{
13
return
1
/
x
<=
0
;
14
}
15
16
int
17
cmp_3
(
float
x
)
18
{
19
return
-
2
/
x
>=
0
;
20
}
21
22
int
23
cmp_4
(
float
x
)
24
{
25
return
-
5
/
x
<=
0
;
26
}
27
28
/* { dg-final { scan-tree-dump-not "rdiv_expr" "optimized" } } */