OSDN Git Service

b899a79ba8a3efb67552a7c8c37e8f4447946283
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gfortran.dg / vect / vect-3.f90
1 ! { dg-do compile }
2 ! { dg-require-effective-target vect_float }
3
4 SUBROUTINE SAXPY(X, Y, A, N)
5 DIMENSION X(N), Y(N)
6 Y = Y + A * X
7 END
8
9 ! fail to vectorize due to failure to compute number of iterations (PR tree-optimization/18527)
10 ! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } 
11 ! { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail *-*-* } } } 
12 ! { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 2 "vect" { xfail *-*-* } } } 
13 ! { dg-final { cleanup-tree-dump "vect" } }