aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr44481.c
blob: 701268b5656055d6242dd4ff9d77fc4fc7e16ba4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2" } */

static inline unsigned
parity (unsigned x)
{
  return (unsigned) __builtin_parity (x);
}

unsigned
f (unsigned rpoly)
{
  return parity (rpoly & 1) ^ parity (rpoly & 6);
}