aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-lsr.c
blob: 439eb82272479afd75a700470f5b148a82b98d90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// (x & M) >> S to (x >> S) & (M >> S)

unsigned int foo(unsigned int x)
{
	return (x & 0xffff) >> 12;
}

/*
 * check-name: and-lsr
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-contains: and\\..*\\$15
 * check-output-excludes: and\\..*\\$0xffff
 */