Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/popcount-2.c

raw
1 /* { dg-do compile { target { ilp32 } } } */
2 /* { dg-skip-if "" { powerpc*-*-darwin* } } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power7" } */
4 /* { dg-final { scan-assembler "popcntw" } } */
5
6 int foo(int x)
7 {
8 return __builtin_popcount(x);
9 }