OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [large_real_kind_3.F90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-require-effective-target fortran_large_real }
3
! { dg-xfail-if "" { "*-*-freebsd*" } { "*" }  { "" } }
4
 
5
! Testing erf and erfc library calls on large real kinds (larger than kind=8)
6
  implicit none
7
 
8
  integer,parameter :: k = selected_real_kind (precision (0.0_8) + 1)
9
  real(8),parameter :: eps = 1e-8
10
 
11
  real(kind=k) :: x
12
  real(8) :: y
13
 
14
#define TEST_FUNCTION(func,val) \
15
 x = val ;\
16
 y = x ;\
17
 x = func (x) ;\
18
 y = func (y) ;\
19
 if (abs((y - x) / y) > eps) call abort
20
 
21
 TEST_FUNCTION(erf,1.45123231)
22
 TEST_FUNCTION(erfc,-0.123789)
23
 
24
end

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.