summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/980312-1.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-16 20:03:19 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1998-03-16 20:03:19 +0000
commite4f09988a8ec9076a0bf45aa1f14e069e2c29c0b (patch)
tree0a69bcf08e7af802c94b24d11ce05c37d0a88bee /gcc/testsuite/gcc.dg/980312-1.c
parent42cfc9f4f2cf8d45e15d3f509e29d827a25b16c2 (diff)
downloadgcc-e4f09988a8ec9076a0bf45aa1f14e069e2c29c0b.tar.gz
New testcase from H.J. Lu for PPro FP conditional move bug.
* gcc.dg/980312-1.c: Another new test for fp on PPro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18633 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/980312-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/980312-1.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/980312-1.c b/gcc/testsuite/gcc.dg/980312-1.c
new file mode 100644
index 00000000000..e5894d0e2cf
--- /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);
+}