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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [graphite/] [pr42393-1.f90] - Blame information for rev 694

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-options "-O2 -fgraphite-identity -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine" }
2
 
3
MODULE beta_gamma_psi
4
  INTEGER, PARAMETER :: dp=KIND(0.0D0)
5
CONTAINS
6
  FUNCTION basym () RESULT(fn_val)
7
    REAL(dp) :: b0(21), bsum, d(21)
8
    DO n = 2, num, 2
9
       DO i = n, np1
10
          b0(1) = 1
11
          DO m = 2, i
12
             mm1 = m - 1
13
             DO j = 1, mm1
14
                bsum = bsum + b0(j)
15
             END DO
16
             b0(m) = bsum
17
          END DO
18
          d(i) = -b0(i)
19
       END DO
20
       sum = sum + d(n)
21
    END DO
22
    fn_val = sum
23
  END FUNCTION basym
24
END MODULE beta_gamma_psi
25
! { dg-final { cleanup-modules "beta_gamma_psi" } }

powered by: WebSVN 2.1.0

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