Update ChangeLog and version files for release
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / popc.c
blob5442a610fa2deb5d5b74255a6c73798c141516e5
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 } } */