aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-27 23:01:28 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-27 17:01:28 -0600
commit3d55c13000501bcc627fe4afb803eb8ca00a37ac (patch)
treec48d3ba78b840124924aaf2f7e733fd83d8c9b9f
parent495897b71ce22eadf3c2de132e85742673f565aa (diff)
downloadgcc-3d55c13000501bcc627fe4afb803eb8ca00a37ac.zip
gcc-3d55c13000501bcc627fe4afb803eb8ca00a37ac.tar.gz
gcc-3d55c13000501bcc627fe4afb803eb8ca00a37ac.tar.bz2
980827-1.c: New test.
* gcc.dg/980827-1.c: New test. New test from Geoff Keating From-SVN: r22042
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/980827-1.c24
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 5d0537f..fa42044 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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.
diff --git a/gcc/testsuite/gcc.dg/980827-1.c b/gcc/testsuite/gcc.dg/980827-1.c
new file mode 100644
index 0000000..33a496b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/980827-1.c
@@ -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));
+}