blob: 341816f9f0b51cc4a2a92d8a531752c8e0e13bf4 (
plain)
1
2
3
4
5
6
7
8
9
|
/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-options "-O2 -mcpu=power7" } */
/* { dg-final { scan-assembler "popcntd" } } */
long foo(int x)
{
return __builtin_popcountl(x);
}
|