aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/and-lsr.c
blob: df6b72f36f544071253af2492a9f9a3831a32bbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// (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-known-to-fail
 *
 * check-output-ignore
 * check-output-contains: and\\..*\\$15
 * check-output-excludes: and\\..*\\$0xffff
 */