declare-simd-3.f90 511 B

1234567891011121314151617181920212223
  1. ! Don't compile this anywhere, it is just auxiliary
  2. ! file compiled together with declare-simd-2.f90
  3. ! to verify inter-CU module handling of omp declare simd.
  4. ! { dg-do compile { target { lp64 && { ! lp64 } } } }
  5. subroutine bar
  6. use declare_simd_2_mod
  7. real :: b(128)
  8. integer :: i
  9. !$omp simd
  10. do i = 1, 128
  11. b(i) = i * 2.0
  12. end do
  13. !$omp simd
  14. do i = 1, 128
  15. b(i) = foo (7.0_8, 5 * i, b(i))
  16. end do
  17. do i = 1, 128
  18. if (b(i).ne.(7.0 + 10.0 * i * i)) call abort
  19. end do
  20. end subroutine bar