2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr23294.c
blob8f9fffb16471e27cf2fad36906d6fe7ff017c93e
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-optimized" } */
4 int f1(int a)
6 return a*6-a;
9 int f2(int a)
11 return a*4+a;
14 int f3(int a)
16 return 2*a + 3*a;
19 int f4(int a, int b)
21 return 2*a + 6*b;
24 int f5(int a, int b)
26 return 2*a - 6*b;
29 int f6(int a, int b)
31 return 6*a - 2*b;
34 /* { dg-final { scan-tree-dump-times "a_..D. \\\* 5" 3 "optimized" } } */
35 /* { dg-final { scan-tree-dump-times " \\\* 2" 3 "optimized" } } */
36 /* { dg-final { scan-tree-dump-not "\\\* 6" "optimized" } } */