1 2 3 4 5 6 7 8 9 10 11 12
/* { dg-do compile } */ /* { dg-options "-O" } */ /* { dg-final { scan-assembler-not "negl" } } */ /* { dg-final { scan-assembler-not "andl" } } */ int test(int n) { if ((n & -n) != n) __builtin_unreachable(); return n; }