aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/reassoc_7.f
blob: 4f70ef6f9dd0cd51aedaff445a66277f4e9715dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
! { dg-do compile }
! { dg-options "-O3 -ffast-math -fdump-tree-optimized" }

      SUBROUTINE S55199(P,Dvdph)
      implicit none
      real(8) :: c1,c2,c3,P,Dvdph
      c1=0.1d0
      c2=0.2d0
      c3=0.3d0
      Dvdph = c1 + 2.*P*c2 + 3.*P**2*c3
      END

! There should be two multiplies following un-distribution.

! { dg-final { scan-tree-dump-times " \\\* " 2 "optimized" } }
! { dg-final { cleanup-tree-dump "optimized" } }