1 subroutine s231 (ntimes,ld,n,ctime,dtime,a,b,c,d,e,aa,bb,cc) 2c 3c loop interchange 4c loop with multiple dimension recursion 5c 6 integer ntimes, ld, n, i, nl, j 7 double precision a(n), b(n), c(n), d(n), e(n), aa(ld,n), 8 + bb(ld,n), cc(ld,n) 9 double precision chksum, cs2d 10 real t1, t2, second, ctime, dtime 11 12 call init(ld,n,a,b,c,d,e,aa,bb,cc,'s231 ') 13 t1 = second() 14 do 1 nl = 1,ntimes/n 15 do 10 i=1,n 16 do 20 j=2,n 17 aa(i,j) = aa(i,j-1) + bb(i,j) 18 20 continue 19 10 continue 20 call dummy(ld,n,a,b,c,d,e,aa,bb,cc,1.d0) 21 1 continue 22 t2 = second() - t1 - ctime - ( dtime * float(ntimes/n) ) 23 chksum = cs2d(n,aa) 24 call check (chksum,(ntimes/n)*n*(n-1),n,t2,'s231 ') 25 return 26 end 27 28! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" { xfail *-*-* } } } 29! { dg-final { cleanup-tree-dump "graphite" } } 30