aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-02-25 16:07:14 -0700
committerJeff Law <law@gcc.gnu.org>1998-02-25 16:07:14 -0700
commitc1b2e68daae552692a75a72dbe8f8118d5cb4809 (patch)
tree051181103f83acc53dc85e565d3c0c9680f7e9a2
parentb94b5c16dd72027309b7f781ce2d02ef07de580c (diff)
downloadgcc-c1b2e68daae552692a75a72dbe8f8118d5cb4809.zip
gcc-c1b2e68daae552692a75a72dbe8f8118d5cb4809.tar.gz
gcc-c1b2e68daae552692a75a72dbe8f8118d5cb4809.tar.bz2
New testcase for x86 specific crash.
From-SVN: r18239
-rw-r--r--gcc/testsuite/gcc.dg/980226-1.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/980226-1.c b/gcc/testsuite/gcc.dg/980226-1.c
new file mode 100644
index 0000000..f66e9e2
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/980226-1.c
@@ -0,0 +1,12 @@
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-options -O2 } */
+
+extern double bar (double);
+
+int
+baz (double d)
+{
+ double e = bar (d);
+ asm volatile ("" : : : "st");
+ return printf ("%lg\n", e);
+}