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); }