aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/libgomp/testsuite/libgomp.fortran/declare-simd-3.f90
blob: 031625ec43514e2ec996bdb26000266427c0fe97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! Don't compile this anywhere, it is just auxiliary
! file compiled together with declare-simd-2.f90
! to verify inter-CU module handling of omp declare simd.
! { dg-do compile { target { lp64 && { ! lp64 } } } }

subroutine bar
  use declare_simd_2_mod
  real :: b(128)
  integer :: i

  !$omp simd
  do i = 1, 128
    b(i) = i * 2.0
  end do
  !$omp simd
  do i = 1, 128
    b(i) = foo (7.0_8, 5 * i, b(i))
  end do
  do i = 1, 128
    if (b(i).ne.(7.0 + 10.0 * i * i)) call abort
  end do
end subroutine bar