PR testsuite/41878
[official-gcc.git] / gcc / testsuite / gfortran.dg / vect / pr19049.f90
blob6c8030cce30dad8c615c54b3114f008876662525
1 ! { dg-do compile }
2 ! { dg-require-effective-target vect_float }
4 subroutine s111 (ntimes,ld,n,ctime,dtime,a,b,c,d,e,aa,bb,cc)
5 ! linear dependence testing
6 ! no dependence - vectorizable
7 ! but not consecutive access
9 integer ntimes, ld, n, i, nl
10 real a(n), b(n), c(n), d(n), e(n), aa(ld,n), bb(ld,n), cc(ld,n)
11 real t1, t2, second, chksum, ctime, dtime, cs1d
12 do 1 nl = 1,2*ntimes
13 do 10 i = 2,n,2
14 a(i) = a(i-1) + b(i)
15 10 continue
16 call dummy(ld,n,a,b,c,d,e,aa,bb,cc,1.)
17 1 continue
18 return
19 end
21 ! { dg-final { scan-tree-dump-times "vectorized 1 loops" 0 "vect" } }
22 ! { dg-final { scan-tree-dump-times "complicated access pattern" 1 "vect" } }
23 ! { dg-final { cleanup-tree-dump "vect" } }