aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr68647.c
blob: 70549318e87734cb16a2a267828bc86778c21439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR target/68647 */
/* { dg-do compile } */
/* { dg-options "-O2 -mpopcnt" } */

int
f1 (unsigned long long a)
{
  return __builtin_popcountll (a);
}

int
f2 (unsigned long long a)
{
  return __builtin_parityll (a);
}

/* { dg-final { scan-assembler-not "__popcountdi2" } } */
/* { dg-final { scan-assembler-not "__paritydi2" } } */