1 ; RUN: llc -mtriple x86_64-apple-darwin %s -o - | FileCheck %s --check-prefix=APPLE
2 ; RUN: llc -mtriple x86_64-pc-windows-gnu %s -o - | FileCheck %s --check-prefix=MINGW64
3 ; RUN: llc -mtriple i686-pc-windows-gnu %s -o - | FileCheck %s --check-prefix=MINGW32
4 @_ZTIi = external constant i8*
6 define i32 @main() uwtable optsize ssp personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
7 ; APPLE: .cfi_startproc
8 ; APPLE: .cfi_personality 155, ___gxx_personality_v0
9 ; APPLE: .cfi_lsda 16, Lexception0
10 ; APPLE: .cfi_def_cfa_offset 16
11 ; APPLE: callq __Unwind_Resume
13 ; APPLE: GCC_except_table0:
17 ; MINGW64: .seh_handler __gxx_personality_v0
18 ; MINGW64: .seh_setframe %rbp, 32
19 ; MINGW64: callq _Unwind_Resume
20 ; MINGW64: .seh_handlerdata
21 ; MINGW64: .seh_endproc
22 ; MINGW64: GCC_except_table0:
23 ; MINGW64: Lexception0:
25 ; MINGW32: .cfi_startproc
26 ; MINGW32: .cfi_personality 0, ___gxx_personality_v0
27 ; MINGW32: .cfi_lsda 0, Lexception0
28 ; MINGW32: .cfi_def_cfa_offset 8
29 ; MINGW32: calll __Unwind_Resume
30 ; MINGW32: .cfi_endproc
31 ; MINGW32: GCC_except_table0:
32 ; MINGW32: Lexception0:
35 invoke void @_Z1fv() optsize
36 to label %try.cont unwind label %lpad
39 %0 = landingpad { i8*, i32 }
41 catch i8* bitcast (i8** @_ZTIi to i8*)
48 resume { i8*, i32 } %0
51 declare void @_Z1fv() optsize
53 declare i32 @__gxx_personality_v0(...)