1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-reassoc1" } */
4 unsigned f1 (unsigned x
, unsigned z
)
16 /* { dg-final { scan-tree-dump-times "\\\* 7" 1 "reassoc1" } } */
18 unsigned f2 (unsigned x
, unsigned z
)
31 /* { dg-final { scan-tree-dump-times "\\\* 5" 1 "reassoc1" } } */
32 /* { dg-final { scan-tree-dump-times "\\\* 4" 1 "reassoc1" } } */
34 unsigned f3 (unsigned x
, unsigned z
, unsigned k
)
44 /* { dg-final { scan-tree-dump-times "\\\* 2" 1 "reassoc1" } } */
45 /* { dg-final { scan-tree-dump-times "\\\* 3" 1 "reassoc1" } } */
47 unsigned f4 (unsigned x
, unsigned z
, unsigned k
)
60 /* { dg-final { scan-tree-dump-times "\\\* 8" 1 "reassoc1" } } */
62 unsigned f5 (unsigned x
, unsigned y
, unsigned z
)
64 return x
+ y
+ y
+ y
+ y
+ y \
65 + y
+ z
+ z
+ z
+ z
+ z
+ z
+ z
+ z
+ z
;
68 /* { dg-final { scan-tree-dump-times "\\\* 6" 1 "reassoc1" } } */
69 /* { dg-final { scan-tree-dump-times "\\\* 9" 1 "reassoc1" } } */