This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Re: gcc ICE on alpha with "-O2 -mieee"
- To: rth at cygnus dot com
- Subject: [PATCH] Re: gcc ICE on alpha with "-O2 -mieee"
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Thu, 29 Jun 2000 12:21:05 +0200
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20000628152824.B881@devserv.devel.redhat.com> <20000628132004.C16852@cygnus.com> <20000628224207.W474@sunsite.ms.mff.cuni.cz> <20000628135353.A16982@cygnus.com>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Wed, Jun 28, 2000 at 01:53:53PM -0700, Richard Henderson wrote:
> On Wed, Jun 28, 2000 at 10:42:07PM +0200, Jakub Jelinek wrote:
> > Ouch, you were faster. I just managed to distille the testcase...
> >
> > float foo(unsigned char n)
> > {
> > float r = 10 * n;
> > asm volatile("" : : : "memory");
> > return r;
> > }
>
> You might go ahead and put this in a form for gcc.dg.
Is this ok to commit?
2000-06-29 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/20000629-2.c: New test.
--- gcc/testsuite/gcc.dg/20000629-2.c.jj Thu Jun 29 11:48:33 2000
+++ gcc/testsuite/gcc.dg/20000629-2.c Thu Jun 29 11:49:24 2000
@@ -0,0 +1,9 @@
+/* { dg-do compile { target alpha*-*-* } } */
+/* { dg-options "-O2 -mieee" } */
+
+float foo(unsigned char n)
+{
+ float r = 10 * n;
+ asm volatile("" : : : "memory");
+ return r;
+}
Jakub