1*c85f09ccSJohn Levon int a, c, d; 2*c85f09ccSJohn Levon foo(void)3*c85f09ccSJohn Levonint foo(void) 4*c85f09ccSJohn Levon { 5*c85f09ccSJohn Levon int b, e = 0; 6*c85f09ccSJohn Levon if (a) 7*c85f09ccSJohn Levon b = c; 8*c85f09ccSJohn Levon else 9*c85f09ccSJohn Levon b = d; 10*c85f09ccSJohn Levon if (c) 11*c85f09ccSJohn Levon a = b; 12*c85f09ccSJohn Levon if (b) 13*c85f09ccSJohn Levon e = a; 14*c85f09ccSJohn Levon return e; 15*c85f09ccSJohn Levon } 16*c85f09ccSJohn Levon 17*c85f09ccSJohn Levon /* 18*c85f09ccSJohn Levon * check-name: global direct 19*c85f09ccSJohn Levon * check-command: test-linearize -Wno-decl -fdump-ir=mem2reg $file 20*c85f09ccSJohn Levon * check-output-ignore 21*c85f09ccSJohn Levon * check-output-pattern(4,5): load\\. 22*c85f09ccSJohn Levon * check-output-pattern(1): store\\. 23*c85f09ccSJohn Levon */ 24