Commit 00620286 by Ulrich Weigand Committed by Ulrich Weigand

nan_inf_fmt.x: Skip on spu-*-*.

	* gfortran.fortran-torture/execute/nan_inf_fmt.x: Skip on spu-*-*.
	* gfortran.fortran-torture/execute/intrinsic_nearest.x: Likewise.
	* gfortran.fortran-torture/execute/intrinsic_set_exponent.x: Likewise.
	* gfortran.dg/nearest_1.f90: Likewise.
	* gfortran.dg/nearest_3.f90: Likewise.
	* gfortran.dg/isnan_1.f90: Likewise.
	* gfortran.dg/isnan_2.f90: Likewise.
	* gfortran.dg/nan_1.f90: Likewise.
	* gfortran.dg/nan_2.f90: Likewise.
	* gfortran.dg/nan_3.f90: Likewise.
	* gfortran.dg/nan_4.f90: Likewise.
	* gfortran.dg/module_nan.f90: Likewise.
	* gfortran.dg/int_conv_2.f90: Likewise.
	* gfortran.dg/init_flag_3.f90: Likewise.
	* gfortran.dg/namelist_42.f90: Likewise.
	* gfortran.dg/namelist_43.f90: Likewise.
	* gfortran.dg/real_const_3.f90: Likewise.
	* gfortran.dg/transfer_simplify_1.f90: Likewise.

	* gfortran.dg/default_format_1.f90: XFAIL on spu-*-*.
	* gfortran.dg/default_format_denormal_1.f90: XFAIL on spu-*-*.
	* gfortran.dg/scalar_mask_2.f90: XFAIL on spu-*-*.
	* gfortran.dg/integer_exponentiation_3.F90: XFAIL on spu-*-*.
	* gfortran.dg/integer_exponentiation_5.F90: XFAIL on spu-*-*.

	* gfortran.dg/elemental_subroutine_1.f90: Relax "epsilon" check.
	* gfortran.dg/gamma_5.f90: Likewise.

From-SVN: r146243
parent c9184dd8
2009-04-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2009-04-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gfortran.fortran-torture/execute/nan_inf_fmt.x: Skip on spu-*-*.
* gfortran.fortran-torture/execute/intrinsic_nearest.x: Likewise.
* gfortran.fortran-torture/execute/intrinsic_set_exponent.x: Likewise.
* gfortran.dg/nearest_1.f90: Likewise.
* gfortran.dg/nearest_3.f90: Likewise.
* gfortran.dg/isnan_1.f90: Likewise.
* gfortran.dg/isnan_2.f90: Likewise.
* gfortran.dg/nan_1.f90: Likewise.
* gfortran.dg/nan_2.f90: Likewise.
* gfortran.dg/nan_3.f90: Likewise.
* gfortran.dg/nan_4.f90: Likewise.
* gfortran.dg/module_nan.f90: Likewise.
* gfortran.dg/int_conv_2.f90: Likewise.
* gfortran.dg/init_flag_3.f90: Likewise.
* gfortran.dg/namelist_42.f90: Likewise.
* gfortran.dg/namelist_43.f90: Likewise.
* gfortran.dg/real_const_3.f90: Likewise.
* gfortran.dg/transfer_simplify_1.f90: Likewise.
* gfortran.dg/default_format_1.f90: XFAIL on spu-*-*.
* gfortran.dg/default_format_denormal_1.f90: XFAIL on spu-*-*.
* gfortran.dg/scalar_mask_2.f90: XFAIL on spu-*-*.
* gfortran.dg/integer_exponentiation_3.F90: XFAIL on spu-*-*.
* gfortran.dg/integer_exponentiation_5.F90: XFAIL on spu-*-*.
* gfortran.dg/elemental_subroutine_1.f90: Relax "epsilon" check.
* gfortran.dg/gamma_5.f90: Likewise.
2009-04-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* lib/gcc-dg.exp (gcc-dg-prune): Make linker message check * lib/gcc-dg.exp (gcc-dg-prune): Make linker message check
less strict so it also works with auto-overlay support. less strict so it also works with auto-overlay support.
* lib/gcc-defs.exp (${tool}_check_unsupported_p): Add check * lib/gcc-defs.exp (${tool}_check_unsupported_p): Add check
......
! { dg-do run } ! { dg-do run { xfail spu-*-* } }
! Test XFAILed on Darwin because the system's printf() lacks ! Test XFAILed on Darwin because the system's printf() lacks
! proper support for denormals. ! proper support for denormals.
! !
......
! { dg-do run { xfail alpha*-*-* *-*-darwin[89]* *-*-freebsd* *-*-mingw* } } ! { dg-do run { xfail alpha*-*-* *-*-darwin[89]* *-*-freebsd* *-*-mingw* spu-*-* } }
! Test XFAILed on these platforms because the system's printf() lacks ! Test XFAILed on these platforms because the system's printf() lacks
! proper support for denormals. ! proper support for denormals.
! !
......
...@@ -48,7 +48,7 @@ end module pr22146 ...@@ -48,7 +48,7 @@ end module pr22146
! Test an expression in the INTENT(IN) argument ! Test an expression in the INTENT(IN) argument
x = (/1.0, 2.0/) x = (/1.0, 2.0/)
call foobar (cos (x) + u, y) call foobar (cos (x) + u, y)
if (any(abs (y + cos (x) + u) .gt. 2.0e-6)) call abort () if (any(abs (y + cos (x) + u) .gt. 4.0e-6)) call abort ()
contains contains
......
...@@ -21,7 +21,7 @@ program main ...@@ -21,7 +21,7 @@ program main
xd = n + 0.5d0 xd = n + 0.5d0
td = c(n)*sqrt(pi) td = c(n)*sqrt(pi)
ts = c(n)*sqrt(pi) ts = c(n)*sqrt(pi)
if (abs(gamma(xs)-ts)/ts > 3e-6) call abort if (abs(gamma(xs)-ts)/ts > 9e-6) call abort
if (abs(gamma(xd)-td)/td > 5e-14) call abort if (abs(gamma(xd)-td)/td > 5e-14) call abort
end do end do
call tst_s(2.3, gamma(2.3)) call tst_s(2.3, gamma(2.3))
......
! { dg-do run } ! { dg-do run }
! { dg-options "-finit-integer=-1 -finit-logical=false -finit-real=nan" } ! { dg-options "-finit-integer=-1 -finit-logical=false -finit-real=nan" }
! { dg-options "-finit-integer=-1 -finit-logical=false -finit-real=nan -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-finit-integer=-1 -finit-logical=false -finit-real=nan -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
program init_flag_3 program init_flag_3
call real_test call real_test
......
! { dg-do compile } ! { dg-do compile }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! PR fortran/37930 ! PR fortran/37930
program test program test
implicit none implicit none
......
! { dg-do run } ! { dg-do run { xfail spu-*-* } }
! FAILs on SPU because of wrong compile-time rounding mode
! { dg-options "" } ! { dg-options "" }
module mod_check module mod_check
implicit none implicit none
......
! { dg-do run } ! { dg-do run { xfail spu-*-* } }
! FAILs on SPU because of invalid result of 1.0/0.0 inline code
! { dg-options "-fno-range-check" } ! { dg-options "-fno-range-check" }
! { dg-options "-fno-range-check -mieee" { target alpha*-*-* } } */ ! { dg-options "-fno-range-check -mieee" { target alpha*-*-* } } */
module mod_check module mod_check
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
! !
! { dg-do run } ! { dg-do run }
! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
implicit none implicit none
real :: x real :: x
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
! { dg-do run } ! { dg-do run }
! { dg-options "-fno-range-check" } ! { dg-options "-fno-range-check" }
! { dg-options "-fno-range-check -pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-fno-range-check -pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
implicit none implicit none
character(len=1) :: s character(len=1) :: s
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fno-range-check" } ! { dg-options "-fno-range-check" }
! { dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34318 ! PR fortran/34318
! !
......
! { dg-do run { target fd_truncate } } ! { dg-do run { target fd_truncate } }
! { dg-options "-mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34427 ! PR fortran/34427
! !
......
! { dg-do run { target fd_truncate } } ! { dg-do run { target fd_truncate } }
! { dg-options "-mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34427 ! PR fortran/34427
! !
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
! !
! { dg-do run } ! { dg-do run }
! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
module aux2 module aux2
interface isnan interface isnan
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fno-range-check -pedantic" } ! { dg-options "-fno-range-check -pedantic" }
! { dg-options "-fno-range-check -pedantic -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-fno-range-check -pedantic -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34333 ! PR fortran/34333
! !
......
! { dg-do run } ! { dg-do run }
! { dg-options "-fno-range-check" } ! { dg-options "-fno-range-check" }
! { dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34319 ! PR fortran/34319
! !
......
! { dg-do compile } ! { dg-do compile }
! { dg-options "-std=gnu" } ! { dg-options "-std=gnu" }
! { dg-options "-std=gnu -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-std=gnu -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34398. ! PR fortran/34398.
! !
......
! { dg-do run } ! { dg-do run }
! { dg-options "-O0 -ffloat-store" } ! { dg-options "-O0 -ffloat-store" }
! { dg-options "-O0 -ffloat-store -mieee" { target alpha*-*-* } } ! { dg-options "-O0 -ffloat-store -mieee" { target alpha*-*-* } }
! { dg-skip-if "Denormals not supported" { spu-*-* } { "*" } { "" } }
! PR fortran/27021 ! PR fortran/27021
! Original code submitted by Dominique d'Humieres ! Original code submitted by Dominique d'Humieres
! Converted to Dejagnu for the testsuite by Steven G. Kargl ! Converted to Dejagnu for the testsuite by Steven G. Kargl
......
! { dg-do run } ! { dg-do run }
! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } } ! { dg-options "-pedantic-errors -mieee" { target alpha*-*-* sh*-*-* } }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! !
! PR fortran/34209 ! PR fortran/34209
! !
......
!{ dg-do run } !{ dg-do run }
!{ dg-options "-fno-range-check" } !{ dg-options "-fno-range-check" }
!{ dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } } !{ dg-options "-fno-range-check -mieee" { target alpha*-*-* sh*-*-* } }
!{ dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! PR19310 and PR19904, allow disabling range check during compile. ! PR19310 and PR19904, allow disabling range check during compile.
! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org> ! Contributed by Jerry DeLisle <jvdelisle@gcc.gnu.org>
program main program main
......
! { dg-do run } ! { dg-do run { xfail spu-*-* } }
! FAILs on SPU because of rounding error reading kinds.h
program main program main
! Test scalar masks for different intrinsics. ! Test scalar masks for different intrinsics.
real, dimension(2,2) :: a real, dimension(2,2) :: a
......
! { dg-do run } ! { dg-do run }
! { dg-options "-O2" } ! { dg-options "-O2" }
! { dg-skip-if "NaN not supported" { spu-*-* } { "*" } { "" } }
! Tests that the PRs caused by the lack of gfc_simplify_transfer are ! Tests that the PRs caused by the lack of gfc_simplify_transfer are
! now fixed. These were brought together in the meta-bug PR31237 ! now fixed. These were brought together in the meta-bug PR31237
! (TRANSFER intrinsic). ! (TRANSFER intrinsic).
......
if [istarget "spu-*-*"] {
# No Inf/NaN support on SPU.
return 1
}
add-ieee-options add-ieee-options
return 0 return 0
if [istarget "spu-*-*"] {
# No denormal support on SPU.
return 1
}
add-ieee-options add-ieee-options
return 0 return 0
if [istarget "spu-*-*"] {
# No Inf/NaN support on SPU.
return 1
}
add-ieee-options add-ieee-options
return 0 return 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment