summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90
diff options
context:
space:
mode:
authorupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
committerupstream source tree <ports@midipix.org>2015-03-15 20:14:05 -0400
commit554fd8c5195424bdbcabf5de30fdc183aba391bd (patch)
tree976dc5ab7fddf506dadce60ae936f43f58787092 /gcc/testsuite/gfortran.dg/graphite/interchange-3.f90
downloadcbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.bz2
cbb-gcc-4.6.4-554fd8c5195424bdbcabf5de30fdc183aba391bd.tar.xz
obtained gcc-4.6.4.tar.bz2 from upstream website;upstream
verified gcc-4.6.4.tar.bz2.sig; imported gcc-4.6.4 source tree from verified upstream tarball. downloading a git-generated archive based on the 'upstream' tag should provide you with a source tree that is binary identical to the one extracted from the above tarball. if you have obtained the source via the command 'git clone', however, do note that line-endings of files in your working directory might differ from line-endings of the respective files in the upstream repository.
Diffstat (limited to 'gcc/testsuite/gfortran.dg/graphite/interchange-3.f90')
-rw-r--r--gcc/testsuite/gfortran.dg/graphite/interchange-3.f9028
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90 b/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90
new file mode 100644
index 000000000..06da2b3aa
--- /dev/null
+++ b/gcc/testsuite/gfortran.dg/graphite/interchange-3.f90
@@ -0,0 +1,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" } }