From 3aa8b384e30aad836a96d1c88f47af2525049f00 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Sun, 3 Apr 2011 18:04:25 +0200 Subject: [PATCH] bessel_6.f90: Reduce mymax for Tru64. 2011-04-03 Tobias Burnus * gfortran.dg/bessel_6.f90: Reduce mymax for Tru64. From-SVN: r171912 --- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/gfortran.dg/bessel_6.f90 | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5a39746b1a3..e411a6c63f6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-04-03 Tobias Burnus + + * gfortran.dg/bessel_6.f90: Reduce mymax for Tru64. + 2011-04-03 Richard Guenther Ira Rosen diff --git a/gcc/testsuite/gfortran.dg/bessel_6.f90 b/gcc/testsuite/gfortran.dg/bessel_6.f90 index e760d4cdb74..bfbf1e1fe0a 100644 --- a/gcc/testsuite/gfortran.dg/bessel_6.f90 +++ b/gcc/testsuite/gfortran.dg/bessel_6.f90 @@ -16,7 +16,7 @@ real,parameter :: myeps(size(values)) = epsilon(0.0) & ! more tolerant ! * [0, 5, 3, 4, 6, 7, 7, 5, 5, 6, 66, 4 ] integer,parameter :: mymax(size(values)) = & - [100, 17, 23, 21, 27, 28, 32, 35, 36, 41, 47, 37 ] + [100, 17, 23, 21, 27, 28, 32, 35, 31, 41, 47, 37 ] integer, parameter :: Nmax = 100 real :: rec(0:Nmax), lib(0:Nmax) integer :: i @@ -39,8 +39,9 @@ lib(0:mymax) = [ (BESSEL_JN(i, X), i=0,mymax) ] do i = 0, mymax ! print '(i2,2e17.9,e12.2,f18.10,2l3)', i, rec(i), lib(i), & ! rec(i)-lib(i), ((rec(i)-lib(i))/rec(i))/epsilon(x), & -! rec(i) == lib(i) .or. abs((rec(i)-lib(i))/rec(i)) < myeps -if (.not. (rec(i) == lib(i) .or. abs((rec(i)-lib(i))/rec(i)) < myeps)) & +! rec(i) == lib(i), abs((rec(i)-lib(i))/rec(i)) < myeps +if (rec(i) == lib(i)) CYCLE +if (abs((rec(i)-lib(i))/rec(i)) > myeps) & call abort() end do -- 2.30.2