1 ! { dg-do run { xfail spu-*-* } }
2 ! { dg-options "-fno-range-check -ffree-line-length-none -O0" }
3 ! { dg-add-options ieee }
5 ! XFAILed for SPU targets because our library implementation of
6 ! the double-precision erf/erfc functions is not accurate enough.
8 ! Check that simplification functions and runtime library agree on ERF,
9 ! ERFC and ERFC_SCALED.
24 call check(erf(real(a,kind=8)), erf(x8)) ; \
25 call check(erf(real(a,kind=4)), erf(x4)) ; \
26 call check(erfc(real(a,kind=8)), erfc(x8)) ; \
27 call check(erfc(real(a,kind=4)), erfc(x4)) ; \
28 call check(erfc_scaled(real(a,kind=8)), erfc_scaled(x8)) ; \
29 call check(erfc_scaled(real(a,kind=4)), erfc_scaled(x4)) ;
45 subroutine check_r4 (a, b)
46 real(kind=4), intent(in) :: a, b
47 if (abs(a - b) > 10 * spacing(a)) call abort
50 subroutine check_r8 (a, b)
51 real(kind=8), intent(in) :: a, b
52 if (abs(a - b) > 10 * spacing(a)) call abort