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 i8* @__cxa_begin_catch(i8*)
7 declare void @__cxa_end_catch()
8 declare void @_callee();
10 define void @_Z8functionv() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
12 invoke void @_Z20function_that_throwsv()
13 to label %try.cont unwind label %lpad
16 %0 = landingpad { i8*, i32 }
18 %1 = extractvalue { i8*, i32 } %0, 0
19 %2 = tail call i8* @__cxa_begin_catch(i8* %1)
20 tail call void @__cxa_end_catch()
24 musttail call void @_callee();
28 ; CHECK-LABEL: __Z8functionv:
29 ; CHECK: calll __Unwind_SjLj_Unregister