1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-forwprop1" } */
16 unsigned goo (unsigned m_param
, unsigned n_param
)
18 unsigned b1
= m_param
* (n_param
+ 2);
19 unsigned b2
= m_param
* (n_param
+ 1);
26 unsigned hoo (unsigned k_param
)
28 unsigned b1
= k_param
* 28;
29 unsigned b2
= k_param
* 15;
30 unsigned b3
= k_param
* 12;
32 use_fn (b1
^ b2
^ b3
);
34 return (b1
- b2
) - b3
;
37 /* { dg-final { scan-tree-dump-times "return 8;" 1 "forwprop1" } } */
38 /* { dg-final { scan-tree-dump-times "return m_param" 1 "forwprop1" } } */
39 /* { dg-final { scan-tree-dump-not "return k_param" "forwprop1" } } */