aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/parloops-exit-first-loop-alt-2.f95
blob: 52434f2a9e35ddc9d0fd6c4e71e40584066ba44b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
! { dg-additional-options "-O2" }
! { dg-require-effective-target pthread }
! { dg-additional-options "-ftree-parallelize-loops=2" }
! { dg-additional-options "-fdump-tree-parloops-details" }

! Constant bound, vector addition.

subroutine foo ()
  integer, parameter :: n = 1000
  integer, dimension (0:n-1) :: a, b, c
  common a, b, c
  integer :: ii

  do ii = 0, n - 1
     c(ii) = a(ii) + b(ii) + 25
  end do
end subroutine foo

! { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 1 "parloops" } }