diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr24055.c | 26 |
2 files changed, 31 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2749585def4..f94e00bba81 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2005-09-26 Uros Bizjak <uros@kss-loka.si> + + PR target/24055 + * gcc.target/i386/pr24055.c: New test. + 2005-09-25 Kazu Hirata <kazu@codesourcery.com> PR tree-optimization/23960 diff --git a/gcc/testsuite/gcc.target/i386/pr24055.c b/gcc/testsuite/gcc.target/i386/pr24055.c new file mode 100644 index 00000000000..5190ec4b963 --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr24055.c @@ -0,0 +1,26 @@ +/* PR target/24055 */ +/* Testcase reduced by Serge Belyshev */ +/* { dg-do compile } */ +/* { dg-options "-O2 -ffast-math" } */ + +extern double rint(double); + +void foo_1 (int *p, double x) +{ + *p = rint (x); +} + +void foo_2 (long long *p, double x) +{ + *p = rint (x); +} + +int foo_3 (double x) +{ + return rint (x); +} + +long long foo_4 (double x) +{ + return rint (x); +} |