2 ! { dg-options "-fno-range-check -ffree-line-length-none " }
3 ! { dg-add-options ieee }
5 ! Check that simplification functions and runtime library agree on ERF,
6 ! ERFC and ERFC_SCALED.
21 call check(erf(real(a,kind=8)), erf(x8)) ; \
22 call check(erf(real(a,kind=4)), erf(x4)) ; \
23 call check(erfc(real(a,kind=8)), erfc(x8)) ; \
24 call check(erfc(real(a,kind=4)), erfc(x4)) ; \
25 call check(erfc_scaled(real(a,kind=8)), erfc_scaled(x8)) ; \
26 call check(erfc_scaled(real(a,kind=4)), erfc_scaled(x4)) ;
42 subroutine check_r4 (a, b)
43 real(kind=4), intent(in) :: a, b
44 if (abs(a - b) > 10 * spacing(a)) call abort
47 subroutine check_r8 (a, b)
48 real(kind=8), intent(in) :: a, b
49 if (abs(a - b) > 10 * spacing(a)) call abort