summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90
blob: 06da2b3aa5313e790a61f7af55950764bae9d697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
! Formerly known as ltrans-7.f90

Program FOO
  IMPLICIT INTEGER	(I-N)
  IMPLICIT REAL*8	(A-H, O-Z)
  PARAMETER (N1=1335, N2=1335)
  COMMON U(N1,N2), V(N1,N2), P(N1,N2)

  PC = 0.0D0
  UC = 0.0D0
  VC = 0.0D0

  do I = 1, M
     do J = 1, M
        PC = PC + abs(P(I,J))
        UC = UC + abs(U(I,J))
        VC = VC + abs(V(I,J))
     end do
     U(I,I) = U(I,I) * ( mod (I, 100) /100.)
  end do

  write(6,366) PC, UC, VC
366  format(/, ' PC = ',E12.4,/,' UC = ',E12.4,/,' VC = ',E12.4,/)

end Program FOO

! { dg-final { scan-tree-dump-times "will be interchanged" 1 "graphite" } }
! { dg-final { cleanup-tree-dump "graphite" } }