2017-12-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / parloops-exit-first-loop-alt-2.f95
blob236480cb6c649a3cddd8307901f9fc606ee510ba
1 ! { dg-additional-options "-O2" }
2 ! { dg-require-effective-target pthread }
3 ! { dg-additional-options "-ftree-parallelize-loops=2" }
4 ! { dg-additional-options "-fdump-tree-parloops2-details" }
6 ! Constant bound, vector addition.
8 subroutine foo ()
9 integer, parameter :: n = 1000
10 integer, dimension (0:n-1) :: a, b, c
11 common a, b, c
12 integer :: ii
14 do ii = 0, n - 1
15 c(ii) = a(ii) + b(ii) + 25
16 end do
17 end subroutine foo
19 ! { dg-final { scan-tree-dump-times "alternative exit-first loop transform succeeded" 1 "parloops2" } }