| 1 |
! { dg-do compile } |
| 2 |
! { dg-require-effective-target vect_float } |
| 3 |
|
| 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 |
| 8 |
|
| 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 |
| 20 |
|
| 21 |
! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } |