db/insert_manual_states.pl: remove debug output
[smatch.git] / validation / optim / and-or-mask3s.c
blobcf26472336b9b85ba49272e7e1ba0994eaf05c74
1 #define W 3
2 #define S 8
3 #define M (W << S)
5 static inline int fun(unsigned int x, unsigned int y)
7 return ((x & M) | (y << S)) >> S;
10 short foo(unsigned int x, unsigned int y)
12 return fun(x, y) & W;
16 * check-name: and-or-mask3s
17 * check-command: test-linearize -Wno-decl $file
18 * check-known-to-fail
20 * check-output-ignore
21 * check-output-pattern(1): lsr\\.
22 * check-output-pattern(1): or\\.
23 * check-output-pattern(1): and\\.
24 * check-output-excludes: shl\\.