summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/ia64/builtin-popcount-1.c
blob: c9641d0e6dfeecf5f2599695de5e56eafad8deb4 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "popcnt" } } */

int foo (int x)
{
  return __builtin_popcount (x);
}