| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
|
| 4 |
unsigned long foo(unsigned long x) |
| 5 |
{ |
| 6 |
return __builtin_popcountl(x); |
| 7 |
} |
| 8 |
|
| 9 |
/* { dg-final { scan-assembler-times "popc.b64" 1 } } */ |
| 10 |
/* { dg-final { scan-assembler-times "cvt.s64.s32" 1 } } */ |
| 11 |
|