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

DIMENSION A(1000000), B(1000000), C(1000000)
READ*, X, Y
A = LOG(X); B = LOG(Y); C = A + B
PRINT*, C(500000)
END

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