aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gfortran.dg/reassoc_8.f
blob: 4a6ea72f220f251e4a997fa5f95ed4f78804be10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
! { 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**2*c2 + 3.*P**3*c3
      END

! There should be three multiplies following un-distribution
! and power expansion.

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