/* { dg-do compile } */ /* { dg-options "" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } } */ /* { dg-final { scan-assembler-not "addl" } } */ unsigned parity (unsigned x) { x ^= x >> 16; x ^= x >> 8; x ^= x >> 4; x &= 0xf; return (0x6996 >> x) & 1; }