xref: /illumos-gate/usr/src/tools/smatch/src/validation/optim/lsr-and0.c (revision c85f09cc92abd00c84e58ec9f0f5d942906cb713)

lsr_and0(unsigned x)1*c85f09ccSJohn Levon unsigned lsr_and0(unsigned x)
2*c85f09ccSJohn Levon {
3*c85f09ccSJohn Levon 	unsigned t = (x & 0x00000fff);
4*c85f09ccSJohn Levon 	return (t >> 12) & t;
5*c85f09ccSJohn Levon }
6*c85f09ccSJohn Levon 
7*c85f09ccSJohn Levon /*
8*c85f09ccSJohn Levon  * check-name: lsr-and0
9*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl $file
10*c85f09ccSJohn Levon  *
11*c85f09ccSJohn Levon  * check-output-ignore
12*c85f09ccSJohn Levon  * check-output-contains: ret\\..*\\$0$
13*c85f09ccSJohn Levon  */
14