aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/optim/cse-cmp-next.c
blob: 50fdbac097643d1e987f211ea9bc9eed319269cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
void foo(int p, int i, int f, int *ref, int *dst, int *src)
{
	if (p)
		f = ref[i];
	if (f)
		dst[i] = src[i];
}

/*
 * check-name: cse-cmp-next
 * check-command: test-linearize -Wno-decl $file
 *
 * check-output-ignore
 * check-output-pattern(1,2): mul\\.
 */