1*c85f09ccSJohn Levon // ((x & M) | y) >> S to (y >> S) when (M >> S) == 0
2*c85f09ccSJohn Levon 
foo(unsigned int x,unsigned int y)3*c85f09ccSJohn Levon unsigned int foo(unsigned int x, unsigned int y)
4*c85f09ccSJohn Levon {
5*c85f09ccSJohn Levon 	return ((x & 0xff) | y) >> 8;
6*c85f09ccSJohn Levon }
7*c85f09ccSJohn Levon 
8*c85f09ccSJohn Levon /*
9*c85f09ccSJohn Levon  * check-name: mask-lsr
10*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl $file
11*c85f09ccSJohn Levon  *
12*c85f09ccSJohn Levon  * check-output-ignore
13*c85f09ccSJohn Levon  * check-output-excludes: %arg1
14*c85f09ccSJohn Levon  */
15