This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testcase] ia32 regstack ICE
- To: jh at suse dot cz
- Subject: [testcase] ia32 regstack ICE
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 17 Nov 2000 15:01:25 +0100
- Cc: gcc-patches at gcc dot gnu dot org
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
This test ICEs on ia32 in reg-stack.
Ok to commit?
2000-11-17 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20001117-1.c: New test.
--- gcc/testsuite/gcc.dg/20001117-1.c.jj Fri Nov 17 15:01:21 2000
+++ gcc/testsuite/gcc.dg/20001117-1.c Fri Nov 17 15:01:33 2000
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -finstrument-functions" } */
+
+double
+foo (double a, double b)
+{
+ double c;
+ if (0.0 < a)
+ c = a;
+ else if (b > 0.0)
+ c = 0.0;
+ else
+ return 0;
+ return 2.0 * (b - c);
+}
Jakub