This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Re: gcc ICE on alpha with "-O2 -mieee"


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]