gcc/testsuite/gfortran.dg/vect/pr32377.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-require-effective-target vect_float } |
| 3 | |
| 4 | subroutine s243(ntimes,ld,n,ctime,dtime,a,b,c,d,e,aa,bb,cc) |
| 5 | |
| 6 | integer ntimes,ld,n,i,nl |
| 7 | real a(n),b(n),c(n),d(n),e(n),aa(ld,n),bb(ld,n),cc(ld,n) |
| 8 | real t1,t2,chksum,ctime,dtime,cs1d |
| 9 | b(:n-1)= b(:n-1)+(c(:n-1)+e(:n-1))*d(:n-1) |
| 10 | a(:n-1)= b(:n-1)+a(2:n)*d(:n-1) |
| 11 | return |
| 12 | end subroutine s243 |
| 13 | |
| 14 | ! { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } |