2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gfortran.dg / reassoc_7.f
blob4f70ef6f9dd0cd51aedaff445a66277f4e9715dd
1 ! { dg-do compile }
2 ! { dg-options "-O3 -ffast-math -fdump-tree-optimized" }
4 SUBROUTINE S55199(P,Dvdph)
5 implicit none
6 real(8) :: c1,c2,c3,P,Dvdph
7 c1=0.1d0
8 c2=0.2d0
9 c3=0.3d0
10 Dvdph = c1 + 2.*P*c2 + 3.*P**2*c3
11 END
13 ! There should be two multiplies following un-distribution.
15 ! { dg-final { scan-tree-dump-times " \\\* " 2 "optimized" } }
16 ! { dg-final { cleanup-tree-dump "optimized" } }