]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/assoc-2.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / assoc-2.c
CommitLineData
b771c609
AM
1/* { dg-do compile } */
2/* { dg-options "-O -fdump-tree-gimple-raw -fdump-tree-optimized-raw" } */
3
4int f0(int a, int b){
5 return a * 33 * b * 55;
6}
7
288fe52e
AM
8int f1(int a){
9 a *= 33;
10 return a * 55;
11}
12
13int f2(int a, int b){
14 a *= 33;
15 return a * b * 55;
16}
17
18/* { dg-final { scan-tree-dump-times "mult_expr" 7 "gimple" } } */
19/* { dg-final { scan-tree-dump-times "mult_expr" 5 "optimized" } } */