1; RUN: llc < %s -march=arm | FileCheck %s 2target triple = "armv6-apple-macosx10.6" 3 4declare void @func() 5 6declare i8* @llvm.eh.exception() nounwind readonly 7 8declare i32 @llvm.eh.selector(i8*, i8*, ...) nounwind 9 10declare void @llvm.eh.resume(i8*, i32) 11 12declare i32 @__gxx_personality_sj0(...) 13 14define void @test0() { 15entry: 16 invoke void @func() 17 to label %cont unwind label %lpad 18 19cont: 20 ret void 21 22lpad: 23 %exn = call i8* @llvm.eh.exception() 24 %sel = call i32 (i8*, i8*, ...)* @llvm.eh.selector(i8* %exn, i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*), i32 0) 25 call void @llvm.eh.resume(i8* %exn, i32 %sel) noreturn 26 unreachable 27} 28 29; CHECK: __Unwind_SjLj_Resume 30