1998-08-27 19:01:28 -04:00
|
|
|
/* { dg-do run { target powerpc*-*-* } } */
|
|
|
|
/* { dg-options -O2 } */
|
|
|
|
|
1998-10-22 10:31:13 -04:00
|
|
|
double dval = 0;
|
|
|
|
|
1998-08-27 19:01:28 -04:00
|
|
|
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));
|
|
|
|
}
|