aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/mask-lsr.c
blob: ec636444a152674ae8370686acbec25fbe407174 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ((x & M) | y) >> S to (y >> S) when (M >> S) == 0

unsigned int foo(unsigned int x, unsigned int y)
{
	return ((x & 0xff) | y) >> 8;
}

/*
 * check-name: mask-lsr
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-excludes: %arg1
 */