blob: 0332f04a977a489a3a17dfa764b3f037f6c960f5 [file] [log] [blame]
/* PR target/59874 */
/* { dg-do compile } */
/* { dg-options "-O2 -mpopcnt -masm=att" } */
/* { dg-final { scan-assembler "\tpopcntw" { target { ! *-*-darwin* } } } } */
/* { dg-final { scan-assembler "\tpopcnt" { target *-*-darwin* } } } */
unsigned int
foo (unsigned short x)
{
return __builtin_popcount (x);
}