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" } }