1 /* Verify that no straight-line strength reduction occurs across sibling
2    blocks.  */
3 
4 /* { dg-do compile } */
5 /* { dg-options "-O3 -fdump-tree-optimized" } */
6 
7 int
f(int s,int c)8 f (int s, int c)
9 {
10   int a1, a2, a3, x1, x2, x3, x;
11 
12   if (c > 0)
13     {
14       a1 = 2 * s;
15       x1 = c + a1;
16     }
17   else
18     {
19       a1 = 4 * s;
20       x1 = c + a1;
21     }
22 
23   a2 = 6 * s;
24   x2 = c + a2;
25   x = x1 + x2;
26   return x;
27 }
28 
29 /* { dg-final { scan-tree-dump-times " \\* " 3 "optimized" } } */
30