libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / popcount3.c
blob50befb36bac75de1cfa282e38358278b3288bd1c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target popcountl } */
3 /* { dg-options "-O2 -fdump-tree-phiopt4 -fdump-tree-optimized" } */
5 int PopCount (long b) {
6 int c = 0;
8 while (b) {
9 b &= b - 1;
10 c++;
12 return c;
15 /* { dg-final { scan-tree-dump-times "__builtin_popcount|\\.POPCOUNT" 1 "optimized" } } */
16 /* { dg-final { scan-tree-dump-times "if" 0 "phiopt4" } } */