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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pr42108.f90] - Blame information for rev 774

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

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do compile }
2
! { dg-options "-O2 -fdump-tree-fre1" }
3
 
4
subroutine  eval(foo1,foo2,foo3,foo4,x,n,nnd)
5
  implicit real*8 (a-h,o-z)
6
  dimension foo3(n),foo4(n),x(nnd)
7
  nw=0
8
  foo3(1)=foo2*foo4(1)
9
  do i=2,n
10
    foo3(i)=foo2*foo4(i)
11
    do  j=1,i-1
12
      temp=0.0d0
13
      jmini=j-i
14
      do  k=i,nnd,n
15
        temp=temp+(x(k)-x(k+jmini))**2
16
      end do
17
      temp = sqrt(temp+foo1)
18
      foo3(i)=foo3(i)+temp*foo4(j)
19
      foo3(j)=foo3(j)+temp*foo4(i)
20
    end do
21
  end do
22
end subroutine eval
23
 
24
! There should be only one load from n left
25
 
26
! { dg-final { scan-tree-dump-times "\\*n_" 1 "fre1" } }
27
! { dg-final { cleanup-tree-dump "fre1" } }

powered by: WebSVN 2.1.0

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