2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / reassoc-15.c
blob3d39575797229a465b1eb5be9f4806934d4d078c
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-reassoc1" } */
4 unsigned int test3 (unsigned int x, unsigned int y, unsigned int z,
5 unsigned int weight,
6 unsigned int w1, unsigned int w2, unsigned int w3)
8 unsigned int wtmp1 = w1 * weight;
9 unsigned int wtmp2 = w2 * weight;
10 unsigned int wtmp3 = w3 * weight;
11 unsigned int tmp1 = x * wtmp1;
12 unsigned int tmp2 = y * wtmp2;
13 unsigned int tmp3 = z * wtmp3;
14 return tmp1 + tmp2 + tmp3;
17 /* The multiplication with weight should be un-distributed.
18 ??? This pattern is not recognized currently. */
20 /* { dg-final { scan-tree-dump-times "\\\*" 4 "reassoc1" } } */