aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/parity-1.c
blob: f6c881ba8954cadca40f0eac777e84fc19c0239a (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler "setnp" } } */

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