aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/parity-1.c
blob: 1b0001ef2ad2c1328ec0c92546cc7cf334e862e2 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-O2 -march=k8 -mno-popcnt" } */
/* { dg-final { scan-assembler "setnp" } } */

int foo(unsigned int x)
{
  return __builtin_parity(x);
}