summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/octeon-pop-1.c
blob: 54d2e9c04aa5a22c3280fff09b5e80de3e800a6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-options "-O -march=octeon -mgp64" } */
/* { dg-final { scan-assembler "\tpop\t" } } */
/* { dg-final { scan-assembler "\tdpop\t" } } */

NOMIPS16 int
f (long long a)
{
  return __builtin_popcountll (a);
}

NOMIPS16 int
g (int a)
{
  return __builtin_popcount (a);
}