lsr_or_and1(unsigned x,unsigned b)1*c85f09ccSJohn Levon unsigned lsr_or_and1(unsigned x, unsigned b)
2*c85f09ccSJohn Levon {
3*c85f09ccSJohn Levon 	return (((x & 0xfffff000) | b) >> 12);
4*c85f09ccSJohn Levon }
5*c85f09ccSJohn Levon 
shl_or_and1(unsigned x,unsigned b)6*c85f09ccSJohn Levon unsigned shl_or_and1(unsigned x, unsigned b)
7*c85f09ccSJohn Levon {
8*c85f09ccSJohn Levon 	return (((x & 0x000fffff) | b) << 12);
9*c85f09ccSJohn Levon }
10*c85f09ccSJohn Levon 
11*c85f09ccSJohn Levon /*
12*c85f09ccSJohn Levon  * check-name: sh-or-and1
13*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl $file
14*c85f09ccSJohn Levon  *
15*c85f09ccSJohn Levon  * check-output-ignore
16*c85f09ccSJohn Levon  * check-output-pattern(1): lsr\\.
17*c85f09ccSJohn Levon  * check-output-pattern(1): shl\\.
18*c85f09ccSJohn Levon  * check-output-pattern(2): or\\.
19*c85f09ccSJohn Levon  * check-output-excludes: and\\.
20*c85f09ccSJohn Levon  */
21