aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cmp-and-pow2.c
blob: 01ba2537521f45671252300cd487f189f9c08b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define M 32

_Bool eq(int a) { return ((a & M) != M) == ((a & M) == 0); }
_Bool ne(int a) { return ((a & M) == M) == ((a & M) != 0); }

/*
 * check-name: cmp-and-pow2
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-returns: 1
 */