• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s | FileCheck %s
2target 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, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @g, i8* null }]
6
7declare i32 @__gxx_personality_seh0(...)
8
9; Function Attrs: nounwind
10define void @f() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_seh0 to i8*) {
11entry:
12  invoke void @g()
13          to label %exit unwind label %lpad
14
15lpad:                                             ; preds = %entry
16  landingpad { i8*, i32 }
17          cleanup
18  unreachable
19
20exit:                                             ; preds = %entry
21  unreachable
22}
23; CHECK-LABEL: f:
24; CHECK:       .seh_proc f
25; CHECK:               .seh_handler __gxx_personality_seh0, @unwind, @except
26; CHECK:       callq g
27; CHECK:               .seh_handlerdata
28; CHECK:               .seh_endproc
29
30define void @g() {
31  unreachable
32}
33; CHECK-LABEL: g:
34; CHECK: ud2
35
36attributes #0 = { nounwind }
37