Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr59874-3.c

raw
1 /* PR target/59874 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mpopcnt -masm=att" } */
4 /* { dg-final { scan-assembler "\tpopcntw" { target { ! *-*-darwin* } } } } */
5 /* { dg-final { scan-assembler "\tpopcnt" { target *-*-darwin* } } } */
6
7 unsigned int
8 foo (unsigned short x)
9 {
10 return __builtin_popcount (x);
11 }