From 27985b669a096e686ab206be177d7e3df114e207 Mon Sep 17 00:00:00 2001 From: Clinton Popetz Date: Sat, 10 Jun 2000 02:57:20 +0000 Subject: [PATCH] * gcc.dg/20000609-1.c: New test. From-SVN: r34481 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gcc.dg/20000609-1.c | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 gcc/testsuite/gcc.dg/20000609-1.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4c287551831..eee32933567 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 9 21:54:28 2000 Clinton Popetz + + * gcc.dg/20000609-1.c: New test. + 2000-06-08 Zack Weinberg * 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 index 00000000000..568ca5c1596 --- /dev/null +++ b/gcc/testsuite/gcc.dg/20000609-1.c @@ -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; +}