* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-16.c
blob4a78e8e875096935f332b63ea67c3fe0953b0480
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ffast-math -fdump-tree-reassoc1" } */
4 double test1 (double x, double y, double z, double weight)
6 double tmp1 = x / weight;
7 double tmp2 = y / weight;
8 double tmp3 = -x / weight;
9 return tmp1 + tmp2 + tmp3;
12 /* The division should be un-distributed and all references to x should
13 be gone. */
15 /* { dg-final { scan-tree-dump-times "/" 1 "reassoc1" } } */