foo(int p,int q,int a)1*c85f09ccSJohn Levon int foo(int p, int q, int a)
2*c85f09ccSJohn Levon {
3*c85f09ccSJohn Levon 	if (p)
4*c85f09ccSJohn Levon 		a = 0;
5*c85f09ccSJohn Levon 	if (q)
6*c85f09ccSJohn Levon 		a = 1;
7*c85f09ccSJohn Levon 
8*c85f09ccSJohn Levon 	return a;
9*c85f09ccSJohn Levon }
10*c85f09ccSJohn Levon 
11*c85f09ccSJohn Levon /*
12*c85f09ccSJohn Levon  * check-name: cond-expr5
13*c85f09ccSJohn Levon  * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file
14*c85f09ccSJohn Levon  *
15*c85f09ccSJohn Levon  * check-output-ignore
16*c85f09ccSJohn Levon  * check-output-excludes: load\\.
17*c85f09ccSJohn Levon  * check-output-excludes: store\\.
18*c85f09ccSJohn Levon  * check-output-excludes: phi\\..*, .*, .*
19*c85f09ccSJohn Levon  * check-output-pattern(3): phi\\.
20*c85f09ccSJohn Levon  * check-output-pattern(5): phisrc\\.
21*c85f09ccSJohn Levon  */
22