8sa1-gcc/gcc/testsuite/gcc.dg/980827-1.c
Jeff Law 4ac2fccfc7 Fix typo.
From-SVN: r23221
1998-10-22 08:31:13 -06:00

27 lines
357 B
C

/* { dg-do run { target powerpc*-*-* } } */
/* { dg-options -O2 } */
double dval = 0;
void splat (double d);
int main(void)
{
splat(0);
if (dval == 0)
abort();
exit (0);
}
void splat (double d)
{
union {
double f;
unsigned int l[2];
} u;
u.f = d + d;
u.l[1] |= 1;
asm volatile ("stfd %0,dval@sdarel(13)" : : "f" (u.f));
}