OSDN Git Service

PR target/24055
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2005 17:25:48 +0000 (17:25 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 26 Sep 2005 17:25:48 +0000 (17:25 +0000)
* gcc.target/i386/pr24055.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104648 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr24055.c [new file with mode: 0644]

index 2749585..f94e00b 100644 (file)
@@ -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 (file)
index 0000000..5190ec4
--- /dev/null
@@ -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);
+}