Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i686-pc-linux-gnu -o - | FileCheck %s
      2 
      3 ; CHECK: .cfi_personality 0, __gnat_eh_personality
      4 ; CHECK: .cfi_lsda 0, .Lexception0
      5 
      6 @error = external global i8
      7 
      8 define void @_ada_x() {
      9 entry:
     10   invoke void @raise()
     11           to label %eh_then unwind label %unwind
     12 
     13 unwind:                                           ; preds = %entry
     14   %eh_ptr = tail call i8* @llvm.eh.exception()
     15   %eh_select = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %eh_ptr, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i8* @error)
     16   %eh_typeid = tail call i32 @llvm.eh.typeid.for(i8* @error)
     17   %tmp2 = icmp eq i32 %eh_select, %eh_typeid
     18   br i1 %tmp2, label %eh_then, label %Unwind
     19 
     20 eh_then:                                          ; preds = %unwind, %entry
     21   ret void
     22 
     23 Unwind:                                           ; preds = %unwind
     24   %0 = tail call i32 (...)* @_Unwind_Resume(i8* %eh_ptr)
     25   unreachable
     26 }
     27 
     28 declare void @raise()
     29 
     30 declare i8* @llvm.eh.exception() nounwind readonly
     31 
     32 declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind
     33 
     34 declare i32 @llvm.eh.typeid.for(i8*) nounwind
     35 
     36 declare i32 @__gnat_eh_personality(...)
     37 
     38 declare i32 @_Unwind_Resume(...)
     39