1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-original" } */
4 int test_eqzero(unsigned int a
)
6 return __builtin_popcount(a
) == 0;
9 int test_eqzerol(unsigned long b
)
11 return __builtin_popcountl(b
) == 0;
14 int test_eqzeroll(unsigned long long c
)
16 return __builtin_popcountll(c
) == 0;
19 int test_nezero(unsigned int d
)
21 return __builtin_popcount(d
) != 0;
24 int test_nezerol(unsigned long e
)
26 return __builtin_popcountl(e
) != 0;
29 int test_nezeroll(unsigned long long f
)
31 return __builtin_popcountll(f
) != 0;
34 /* { dg-final { scan-tree-dump-times "popcount" 0 "original" } } */