aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/mem2reg/if-direct.c
blob: 1b5a07ccd80b0c29036ebd79d846d712e1e8b0d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
int foo(int c, int a, int b)
{
	int l;

	if (c)
		l = a;
	else
		l = b;

	return l;
}

/*
 * check-name: if-then-else direct
 * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
 * check-output-ignore
 * check-output-excludes: load\\.
 * check-output-contains: phi\\.
 */