foo(int c,int a,int b)1*c85f09ccSJohn Levonint foo(int c, int a, int b) 2*c85f09ccSJohn Levon { 3*c85f09ccSJohn Levon int l; 4*c85f09ccSJohn Levon 5*c85f09ccSJohn Levon if (c) 6*c85f09ccSJohn Levon l = a; 7*c85f09ccSJohn Levon else 8*c85f09ccSJohn Levon l = b; 9*c85f09ccSJohn Levon 10*c85f09ccSJohn Levon return l; 11*c85f09ccSJohn Levon } 12*c85f09ccSJohn Levon 13*c85f09ccSJohn Levon /* 14*c85f09ccSJohn Levon * check-name: if-then-else direct 15*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 16*c85f09ccSJohn Levon * check-output-ignore 17*c85f09ccSJohn Levon * check-output-excludes: load\\. 18*c85f09ccSJohn Levon * check-output-contains: phi\\. 19*c85f09ccSJohn Levon */ 20