diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-13 06:18:48 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-11-13 06:18:48 +0000 |
commit | 69d2f735b7434e476546a7c8e1afa7dc5256096e (patch) | |
tree | 729cf1e539495f2cad494db03c7ad9f05b719cec /gcc/testsuite/gcc.dg/pr24820.c | |
parent | df3127cdcff872ada201a356e3a30918ab352b15 (diff) | |
download | gcc-69d2f735b7434e476546a7c8e1afa7dc5256096e.tar.gz |
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/24820
* testsuite/gcc.dg/pr24820.c: New test.
2005-11-13 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/24820
* builtins.c (integer_valued_real_p): Add break in
REAL_CST having TREE_OVERFLOW set.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106851 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pr24820.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr24820.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr24820.c b/gcc/testsuite/gcc.dg/pr24820.c new file mode 100644 index 00000000000..0482ca32118 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr24820.c @@ -0,0 +1,12 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +double floor (double); +double bar (double sum) +{ + int i; + for (i = 0; i < 256; i++) + sum += floor (0.5 + (i - 128)); + return sum; +} + |