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 8define void @_ada_x() { 9entry: 10 invoke void @raise() 11 to label %eh_then unwind label %unwind 12 13unwind: ; 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 20eh_then: ; preds = %unwind, %entry 21 ret void 22 23Unwind: ; preds = %unwind 24 %0 = tail call i32 (...)* @_Unwind_Resume(i8* %eh_ptr) 25 unreachable 26} 27 28declare void @raise() 29 30declare i8* @llvm.eh.exception() nounwind readonly 31 32declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind 33 34declare i32 @llvm.eh.typeid.for(i8*) nounwind 35 36declare i32 @__gnat_eh_personality(...) 37 38declare i32 @_Unwind_Resume(...) 39