aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/trunc-or-shl.c
blob: 8660d0f0224b38323c45db118efbac2c803bdafd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// because of the cast to char, the fist arg should be eliminated
// and the whole reduced to TRUNC(%arg2, 8)

char foo(int a, int b)
{
	return (a << 8) | b;
}

/*
 * check-name: trunc-or-shl
 * check-command: test-linearize -Wno-decl $file
 * check-known-to-fail
 *
 * check-output-ignore
 * check-output-excludes: %arg1
 * check-output-contains: trunc\\..*%arg2
 */