1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int foo1(unsigned int x
, unsigned int y
)
6 int t
= __builtin_popcount (x
&y
);
7 int t1
= __builtin_popcount (x
|y
);
11 int foo2(unsigned int x
, unsigned int y
)
13 int t1
= __builtin_popcount (x
|y
);
14 int t
= __builtin_popcount (x
&y
);
18 int foo3(unsigned int y
, unsigned int x
)
20 int t
= __builtin_popcount (x
&y
);
21 int t1
= __builtin_popcount (x
|y
);
25 int foo4(unsigned int y
, unsigned int x
)
27 int t1
= __builtin_popcount (x
|y
);
28 int t
= __builtin_popcount (x
&y
);
32 /* { dg-final { scan-tree-dump-not " & " "optimized" } } */
33 /* { dg-final { scan-tree-dump-not " \\| " "optimized" } } */