aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@cygnus.co.uk>1999-12-30 12:40:53 +0000
committerBernd Schmidt <crux@gcc.gnu.org>1999-12-30 12:40:53 +0000
commit3fe5b1438ea8fd281aac816f328e791bd63a2ba1 (patch)
tree2de5cdf12315f8001ec9bd3ffc557dc4b1f1623b /gcc
parent47918b57bdd700aad0144cc24024ecaebc3a55d2 (diff)
downloadgcc-3fe5b1438ea8fd281aac816f328e791bd63a2ba1.zip
gcc-3fe5b1438ea8fd281aac816f328e791bd63a2ba1.tar.gz
gcc-3fe5b1438ea8fd281aac816f328e791bd63a2ba1.tar.bz2
New testcase
From-SVN: r31137
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/991230-1.c20
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 614bf23..efe2a75 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+1999-12-30 Bernd Schmidt <bernds@cygnus.co.uk>
+
+ * gcc.dg/991230-1.c: New test.
+
Wed Dec 29 23:48:49 1999 Jeffrey A Law (law@cygnus.com)
* gcc.c-torture/compile/991229-3.c: New test.
diff --git a/gcc/testsuite/gcc.dg/991230-1.c b/gcc/testsuite/gcc.dg/991230-1.c
new file mode 100644
index 0000000..42c6a8e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/991230-1.c
@@ -0,0 +1,20 @@
+/* { dg-do run { target i?86-*-* } } */
+/* { dg-options "-O -ffast-math -mcpu=i486" } */
+
+/* Test that floating point greater-than tests are compiled correctly with
+ -ffast-math. */
+static int gt (double a, double b)
+{
+ if (a > b)
+ return 4;
+ return 0;
+}
+
+static double zero = 0.0;
+
+int main ()
+{
+ if (gt (zero, zero))
+ abort ();
+ return 0;
+}