1 ; FIXME: Fix machine verifier issues and remove -verify-machineinstrs=0. PR39439.
2 ; RUN: llc -mtriple i386-windows-gnu -exception-model sjlj -filetype asm -o - %s -verify-machineinstrs=0 | FileCheck %s
4 declare void @_Z20function_that_throwsv()
5 declare i32 @__gxx_personality_sj0(...)
6 declare ptr @__cxa_begin_catch(ptr)
7 declare void @__cxa_end_catch()
8 declare void @_callee();
10 define void @_Z8functionv() personality ptr @__gxx_personality_sj0 {
12 invoke void @_Z20function_that_throwsv()
13 to label %try.cont unwind label %lpad
16 %0 = landingpad { ptr, i32 }
18 %1 = extractvalue { ptr, i32 } %0, 0
19 %2 = tail call ptr @__cxa_begin_catch(ptr %1)
20 tail call void @__cxa_end_catch()
24 musttail call void @_callee();
28 ; CHECK-LABEL: __Z8functionv:
29 ; CHECK: calll __Unwind_SjLj_Unregister