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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [reassoc_4.f] - Blame information for rev 708

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 "-O3 -ffast-math -fdump-tree-reassoc1" }
3
! { dg-additional-options "--param max-completely-peel-times=16" { target spu-*-* } }
4
! { dg-additional-options "--param max-completely-peeled-insns=400" { target s390*-*-* } }
5
      subroutine anisonl(w,vo,anisox,s,ii1,jj1,weight)
6
      integer ii1,jj1,i1,iii1,j1,jjj1,k1,l1,m1,n1
7
      real*8 w(3,3),vo(3,3),anisox(3,3,3,3),s(60,60),weight
8
!
9
!     This routine replaces the following lines in e_c3d.f for
10
!     an anisotropic material
11
!
12
                      do i1=1,3
13
                        iii1=ii1+i1-1
14
                        do j1=1,3
15
                          jjj1=jj1+j1-1
16
                          do k1=1,3
17
                            do l1=1,3
18
                              s(iii1,jjj1)=s(iii1,jjj1)
19
     &                          +anisox(i1,k1,j1,l1)*w(k1,l1)*weight
20
                              do m1=1,3
21
                                s(iii1,jjj1)=s(iii1,jjj1)
22
     &                              +anisox(i1,k1,m1,l1)*w(k1,l1)
23
     &                                 *vo(j1,m1)*weight
24
     &                              +anisox(m1,k1,j1,l1)*w(k1,l1)
25
     &                                 *vo(i1,m1)*weight
26
                                do n1=1,3
27
                                  s(iii1,jjj1)=s(iii1,jjj1)
28
     &                              +anisox(m1,k1,n1,l1)
29
     &                              *w(k1,l1)*vo(i1,m1)*vo(j1,n1)*weight
30
                                enddo
31
                              enddo
32
                            enddo
33
                          enddo
34
                        enddo
35
                      enddo
36
 
37
      return
38
      end
39
 
40
! There should be 22 multiplications left after un-distributing
41
! weigth, w(k1,l1), vo(i1,m1) and vo(j1,m1) on the innermost two
42
! unrolled loops.
43
 
44
! { dg-final { scan-tree-dump-times "\[0-9\] \\\* " 22 "reassoc1" } }
45
! { dg-final { cleanup-tree-dump "reassoc1" } }

powered by: WebSVN 2.1.0

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