]> gcc.gnu.org Git - gcc.git/commitdiff
re PR target/24055 ("could not split insn" with -O1 -ffast-math)
authorUros Bizjak <uros@kss-loka.si>
Mon, 26 Sep 2005 17:25:48 +0000 (19:25 +0200)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 26 Sep 2005 17:25:48 +0000 (17:25 +0000)
PR target/24055
* gcc.target/i386/pr24055.c: New test.

From-SVN: r104648

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

index 2749585def4d963b4be3065846815b0347c7dca7..f94e00bba8111897caa0235f39c43d3a350ee914 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);
+}
This page took 0.095317 seconds and 5 git commands to generate.