OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* fold-const.c (const_binop): Don't constant fold the operation
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
fold-overflow-1.c
1
/* { dg-compile } */
2
/* { dg-options "-O -ftrapping-math" } */
3
4
float f1 = __FLT_MAX__ + __FLT_MAX__;
5
6
float foo1(void)
7
{
8
return __FLT_MAX__ + __FLT_MAX__;
9
}
10
11
float f2 = 1.0f/0.0f;
12
13
float foo2(void)
14
{
15
return 1.0f/0.0f;
16
}
17
18
/* { dg-final { scan-assembler-times "2139095040" 2 } } */