summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUros Bizjak <uros@kss-loka.si>2005-09-26 19:25:48 +0200
committerIan Lance Taylor <ian@gcc.gnu.org>2005-09-26 17:25:48 +0000
commitbd0ffa878a0c0e5dc727795f5580d9a2e01b5671 (patch)
treef55fdbe73a1e8a81a26ddd7bc6e77b939f502960 /gcc
parent4d06b0a2fefa7c2e8aea54c19f97ebd24ca9e59e (diff)
downloadgcc-bd0ffa878a0c0e5dc727795f5580d9a2e01b5671.tar.gz
re PR target/24055 ("could not split insn" with -O1 -ffast-math)
PR target/24055 * gcc.target/i386/pr24055.c: New test. From-SVN: r104648
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.target/i386/pr24055.c26
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);
+}