summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/graphite/block-3.f90
blob: 9a66adffd928a9cd8fc41f224d7d03447089db57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
subroutine matrix_multiply(a,b,c,n)

real(8), dimension(n,n) :: a,b,c

do i = 1,n
  do j = 1,n
    do k = 1,n
      c(j,i) = c(j,i) + a(k,i) * b(j,k)
    enddo
 enddo
enddo

end subroutine matrix_multiply

! { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite" { xfail *-*-* } } }
! { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite" { xfail *-*-* } } }
! { dg-final { cleanup-tree-dump "graphite" } }