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