mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-29 02:05:03 +08:00
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
This commit is contained in:
parent
76ce477676
commit
6591521aca
@ -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
|
||||
|
20
gcc/testsuite/gcc.dg/980312-1.c
Normal file
20
gcc/testsuite/gcc.dg/980312-1.c
Normal file
@ -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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user