xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/and-or-lsrx.c (revision 66582b606a8194f7f3ba5b3a3a6dca5b0d346361)
1 unsigned int foo(unsigned int x, unsigned int y, unsigned int a)
2 {
3 	return ((x & y) | (a & 0x0fff)) >> 12;
4 }
5 
6 /*
7  * check-name: and-or-lsrx
8  * check-command: test-linearize -Wno-decl $file
9  *
10  * check-output-ignore
11  * check-output-pattern(1): and\\.
12  * check-output-excludes: or\\.
13  */
14