Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -mtriple=x86_64-apple-darwin10 -O0 < %s | FileCheck %s
      2 
      3 ; test that we print a label that we use. We had a bug where
      4 ; we would print the jump, but not the label because it was considered
      5 ; a fall through.
      6 
      7 ; CHECK:        jmp     LBB0_1
      8 ; CHECK: LBB0_1:
      9 
     10 define void @foobar() personality i32 (...)* @__gxx_personality_v0 {
     11 entry:
     12   invoke void @_zed()
     13           to label %invoke.cont unwind label %lpad
     14 
     15 invoke.cont:                                      ; preds = %entry
     16   ret void
     17 
     18 lpad:                                             ; preds = %entry
     19   %exn = landingpad {i8*, i32}
     20             cleanup
     21   unreachable
     22 }
     23 
     24 declare void @_zed() ssp align 2
     25 
     26 declare i32 @__gxx_personality_v0(...)
     27