980827-1.c: New test.

* gcc.dg/980827-1.c: New test.
New test from Geoff Keating

From-SVN: r22042
This commit is contained in:
Jeffrey A Law 1998-08-27 23:01:28 +00:00 committed by Jeff Law
parent 495897b71c
commit 3d55c13000
2 changed files with 28 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Thu Aug 27 23:59:18 1998 Jeffrey A Law (law@cygnus.com)
* gcc.dg/980827-1.c: New test.
Tue Aug 25 19:42:13 1998 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/980825-1.c: New test.

View File

@ -0,0 +1,24 @@
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-options -O2 } */
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));
}