aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@gnu.org>1998-03-16 20:03:19 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-03-16 12:03:19 -0800
commit6591521aca97e3b369a85ce51310a8b3d0b979b3 (patch)
tree0a69bcf08e7af802c94b24d11ce05c37d0a88bee
parent76ce477676387fbbdd00e38d6f8645dd0b73e022 (diff)
downloadgcc-6591521aca97e3b369a85ce51310a8b3d0b979b3.zip
gcc-6591521aca97e3b369a85ce51310a8b3d0b979b3.tar.gz
gcc-6591521aca97e3b369a85ce51310a8b3d0b979b3.tar.bz2
New testcase from H.J. Lu for PPro FP conditional move bug.
* gcc.dg/980312-1.c: Another new test for fp on PPro. From-SVN: r18633
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/980312-1.c20
2 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index c0d49dc..e951226 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+Mon Mar 16 20:01:30 1998 H.J. Lu (hjl@gnu.org)
+
+ * gcc.dg/980312-1.c: Another new test for fp on PPro.
+
Wed Mar 11 13:08:48 1998 Robert Lipe <robertl@dgii.com>
* g77.f-torture/execute/980310-5.f: Deleted. Craig Burley and
diff --git a/gcc/testsuite/gcc.dg/980312-1.c b/gcc/testsuite/gcc.dg/980312-1.c
new file mode 100644
index 0000000..e5894d0
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/980312-1.c
@@ -0,0 +1,20 @@
+/* { dg-do compile { target i?86-*-* } } */
+/* { dg-options "-O2 -mach=pentiumpro" } */
+
+extern __inline double
+__expm1 (double __x)
+{
+ double __temp;
+ __temp = 1.0;
+ return __temp;
+}
+extern __inline double
+__sgn1 (double __x)
+{
+ return __x >= 0.0 ? 1.0 : -1.0;
+}
+double
+tanh (double __x)
+{
+ return __expm1 (__x) * __sgn1 (-__x);
+}