declare-simd-2.f90 663 B

1234567891011121314151617181920212223242526
  1. ! { dg-do run { target vect_simd_clones } }
  2. ! { dg-options "-fno-inline" }
  3. ! { dg-additional-sources declare-simd-3.f90 }
  4. ! { dg-additional-options "-msse2" { target sse2_runtime } }
  5. ! { dg-additional-options "-mavx" { target avx_runtime } }
  6. module declare_simd_2_mod
  7. contains
  8. real function foo (a, b, c)
  9. !$omp declare simd (foo) simdlen (4) uniform (a) linear (b : 5)
  10. double precision, value :: a
  11. real, value :: c
  12. !$omp declare simd (foo)
  13. integer, value :: b
  14. foo = a + b * c
  15. end function foo
  16. end module declare_simd_2_mod
  17. interface
  18. subroutine bar ()
  19. end subroutine bar
  20. end interface
  21. call bar ()
  22. end