37 lines · plain
1; RUN: llc < %s | FileCheck %s2target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"3target triple = "x86_64-w64-windows-gnu"4 5@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @g, ptr null }]6 7declare i32 @__gxx_personality_seh0(...)8 9; Function Attrs: nounwind10define void @f() #0 personality ptr @__gxx_personality_seh0 {11entry:12 invoke void @g()13 to label %exit unwind label %lpad14 15lpad: ; preds = %entry16 landingpad { ptr, i32 }17 cleanup18 unreachable19 20exit: ; preds = %entry21 unreachable22}23; CHECK-LABEL: f:24; CHECK: .seh_proc f25; CHECK: .seh_handler __gxx_personality_seh0, @unwind, @except26; CHECK: callq g27; CHECK: .seh_handlerdata28; CHECK: .seh_endproc29 30define void @g() {31 unreachable32}33; CHECK-LABEL: g:34; CHECK: nop35 36attributes #0 = { nounwind }37