1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=niagara2" } */
3 int test_popcount(int a)
5 return __builtin_popcount(a);
8 long test_popcountl(long a)
10 return __builtin_popcountl(a);
13 long long test_popcountll(long long a)
15 return __builtin_popcountll(a);
18 /* { dg-final { scan-assembler-times "popc\t%" 3 } } */