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

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