blob: c94d155e103eacc70aa58a1766c2aeb04797b26a (
plain)
1
2
3
4
5
6
7
8
9
10
|
/* { dg-do compile { target { ilp32 } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-options "-O2 -mcpu=power5" } */
/* { dg-final { scan-assembler "popcntb" } } */
/* { dg-final { scan-assembler-not "mullw" } } */
int foo(int x)
{
return __builtin_popcount(x);
}
|