Home | History | Annotate | Download | only in Generic
      1 ; RUN: llc < %s | FileCheck %s
      2 
      3 declare i32 @__gxx_personality_v0(...)
      4 declare void @__cxa_call_unexpected(i8*)
      5 declare void @llvm.donothing() readnone
      6 
      7 ; CHECK: f1
      8 define void @f1() nounwind uwtable ssp {
      9 entry:
     10 ; CHECK-NOT: donothing
     11   invoke void @llvm.donothing()
     12   to label %invoke.cont unwind label %lpad
     13 
     14 invoke.cont:
     15   ret void
     16 
     17 lpad:
     18   %0 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
     19           filter [0 x i8*] zeroinitializer
     20   %1 = extractvalue { i8*, i32 } %0, 0
     21   tail call void @__cxa_call_unexpected(i8* %1) noreturn nounwind
     22   unreachable
     23 }
     24 
     25 ; CHECK: f2
     26 define void @f2() nounwind {
     27 entry:
     28 ; CHECK-NOT: donothing
     29   call void @llvm.donothing()
     30   ret void
     31 }
     32