1 ! { dg-do run { xfail spu-*-* } }
2 ! FAILs on SPU because of invalid result of 1.0/0.0 inline code
3 ! { dg-options "-fno-range-check" }
4 ! { dg-add-options ieee }
9 module procedure check_i8
10 module procedure check_i4
11 module procedure check_r8
12 module procedure check_r4
13 module procedure check_c8
14 module procedure check_c4
19 subroutine check_i8 (a, b)
20 integer(kind=8), intent(in) :: a, b
22 end subroutine check_i8
24 subroutine check_i4 (a, b)
25 integer(kind=4), intent(in) :: a, b
27 end subroutine check_i4
29 subroutine check_r8 (a, b)
30 real(kind=8), intent(in) :: a, b
32 end subroutine check_r8
34 subroutine check_r4 (a, b)
35 real(kind=4), intent(in) :: a, b
37 end subroutine check_r4
39 subroutine check_c8 (a, b)
40 complex(kind=8), intent(in) :: a, b
42 end subroutine check_c8
44 subroutine check_c4 (a, b)
45 complex(kind=4), intent(in) :: a, b
47 end subroutine check_c4
62 #define TEST(base,exp,var) var = base; call check((var)**(exp),(base)**(exp))
64 !!!!! INTEGER BASE !!!!!
70 TEST(17_8,int(huge(0_4),kind=8)+1,i8)
74 TEST(0.0,-huge(0)-1,r4)
76 TEST(nearest(1.0,-1.0),-huge(0),r4)