Home | History | Annotate | Download | only in CBackend
      1 ; RUN: llc < %s -march=c
      2 
      3 declare i32 @callee(i32, i32)
      4 
      5 define i32 @test(i32 %X) {
      6 ; <label>:0
      7         %A = invoke i32 @callee( i32 %X, i32 5 )
      8                         to label %Ok unwind label %Threw                ; <i32> [#uses=1]
      9 
     10 Ok:             ; preds = %Threw, %0
     11         %B = phi i32 [ %A, %0 ], [ -1, %Threw ]         ; <i32> [#uses=1]
     12         ret i32 %B
     13 
     14 Threw:          ; preds = %0
     15         br label %Ok
     16 }
     17 
     18