OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [graphite/] [pr14741.f90] - Blame information for rev 414

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-options "-O3 -ffast-math -floop-interchange -floop-block -fdump-tree-graphite-all" }
2
 
3
  INTEGER, PARAMETER :: N=1024
4
  REAL*8 :: A(N,N), B(N,N), C(N,N)
5
  REAL*8 :: t1,t2
6
  A=0.1D0
7
  B=0.1D0
8
  C=0.0D0
9
  CALL cpu_time(t1)
10
  CALL mult(A,B,C,N)
11
  CALL cpu_time(t2)
12
  write(6,*) t2-t1,C(1,1)
13
END program
14
 
15
SUBROUTINE mult(A,B,C,N)
16
  REAL*8 :: A(N,N), B(N,N), C(N,N)
17
  INTEGER :: I,J,K,N
18
  DO J=1,N
19
     DO I=1,N
20
        DO K=1,N
21
           C(I,J)=C(I,J)+A(I,K)*B(K,J)
22
        ENDDO
23
     ENDDO
24
  ENDDO
25
END SUBROUTINE mult
26
 
27
! { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite" { xfail *-*-* } } }
28
! { dg-final { scan-tree-dump-times "will be loop blocked" 1 "graphite" { xfail *-*-* } } }
29
! { dg-final { cleanup-tree-dump "graphite" } }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.