1 ; RUN: llc < %s -march=x86 | grep -A 2 {call.*f} | grep movl
2 ; Check the register copy comes after the call to f and before the call to g
11 %a = call i32 @f() ; <i32> [#uses=1]
13 to label %cont unwind label %lpad ; <i32> [#uses=1]
15 cont: ; preds = %entry
16 %x = phi i32 [ %b, %entry ] ; <i32> [#uses=0]
17 %aa = call i32 @g() ; <i32> [#uses=1]
19 to label %cont2 unwind label %lpad ; <i32> [#uses=1]
21 cont2: ; preds = %cont
22 %xx = phi i32 [ %bb, %cont ] ; <i32> [#uses=1]
25 lpad: ; preds = %cont, %entry
26 %y = phi i32 [ %a, %entry ], [ %aa, %cont ] ; <i32> [#uses=1]