summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/vect/pr32377.f90
blob: 624a9ae7e3b0981a65470554552b9c842d25bef1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
! { dg-do compile }
! { dg-require-effective-target vect_float }

subroutine s243(ntimes,ld,n,ctime,dtime,a,b,c,d,e,aa,bb,cc)

  integer ntimes,ld,n,i,nl
  real a(n),b(n),c(n),d(n),e(n),aa(ld,n),bb(ld,n),cc(ld,n)
  real t1,t2,chksum,ctime,dtime,cs1d
  b(:n-1)= b(:n-1)+(c(:n-1)+e(:n-1))*d(:n-1)
  a(:n-1)= b(:n-1)+a(2:n)*d(:n-1)
  return
end subroutine s243

! { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } }
! { dg-final { cleanup-tree-dump "vect" } }