ec611c173f
2000-06-26 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> * gcc.dg/980523-1.c: Add prototype for exit(). * gcc.dg/980827-1.c: Add prototype for exit() and abort(). From-SVN: r34722
30 lines
427 B
C
30 lines
427 B
C
/* { dg-do run { target rs6000-*-linux* powerpc-*-linux*} } */
|
|
/* { dg-options -O2 } */
|
|
|
|
extern void exit (int);
|
|
extern void abort (void);
|
|
|
|
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));
|
|
}
|