Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i686-linux -asm-verbose | FileCheck %s
      2 ; Check that register copies in the landing pad come after the EH_LABEL
      3 
      4 declare i32 @f()
      5 
      6 define i32 @phi(i32 %x) {
      7 entry:
      8 	%a = invoke i32 @f()
      9 			to label %cont unwind label %lpad		; <i32> [#uses=1]
     10 
     11 cont:		; preds = %entry
     12 	%b = invoke i32 @f()
     13 			to label %cont2 unwind label %lpad		; <i32> [#uses=1]
     14 
     15 cont2:		; preds = %cont
     16 	ret i32 %b
     17 
     18 lpad:		; preds = %cont, %entry
     19 	%v = phi i32 [ %x, %entry ], [ %a, %cont ]		; <i32> [#uses=1]
     20         %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
     21                  cleanup
     22 	ret i32 %v
     23 }
     24 
     25 ; CHECK: lpad
     26 ; CHECK-NEXT: Ltmp
     27 
     28 declare i32 @__gxx_personality_v0(...)
     29