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

subroutine foo (x,nnd)
  dimension x(nnd) 
  integer i
  
  do i=1,nnd
    x(i) = 1.d0 + (1.d0*i)/nnd
  end do

end subroutine foo 

! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_unpack  && vect_intfloat_cvt } } } } 
! { dg-final { cleanup-tree-dump "vect" } }