gcc/testsuite/gfortran.dg/reassoc_8.f
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-O3 -ffast-math -ffp-contract=off -fdump-tree-optimized" } |
| 3 | |
| 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**2*c2 + 3.*P**3*c3 |
| 11 | END |
| 12 | |
| 13 | ! There should be three multiplies following un-distribution |
| 14 | ! and power expansion. |
| 15 | |
| 16 | ! { dg-final { scan-tree-dump-times " \\\* " 3 "optimized" } } |