* gcc.dg/20000609-1.c: New test.
authorClinton Popetz <cpopetz@cygnus.com>
Sat, 10 Jun 2000 02:57:20 +0000 (02:57 +0000)
committerClinton Popetz <cpopetz@gcc.gnu.org>
Sat, 10 Jun 2000 02:57:20 +0000 (22:57 -0400)
From-SVN: r34481

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/20000609-1.c [new file with mode: 0644]

index 4c28755..eee3293 100644 (file)
@@ -1,3 +1,7 @@
+Fri Jun  9 21:54:28 2000  Clinton Popetz  <cpopetz@cygnus.com>
+
+       * gcc.dg/20000609-1.c: New test.
+
 2000-06-08  Zack Weinberg  <zack@wolery.cumb.org>
 
        * gcc.c-torture/noncompile/noncompile.exp: Remove poison-1 block.
diff --git a/gcc/testsuite/gcc.dg/20000609-1.c b/gcc/testsuite/gcc.dg/20000609-1.c
new file mode 100644 (file)
index 0000000..568ca5c
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-do run { target i?86-*-* } } */
+/* { dg-options "-O1 -ffast-math -march=i686" } */
+
+/* Sanity check for fp_jcc_* with TARGET_CMOVE.  */
+
+extern void abort (void);
+
+static int test(double a)
+{
+  if (a)
+    return 0;
+}
+
+static double zero = 0.0;
+
+int main ()
+{
+  test (zero);
+  return 0;
+}