[Reland][Runtimes] Merge 'compile_commands.json' files from runtimes build (#116303)
[llvm-project.git] / llvm / test / CodeGen / X86 / pr24374.ll
blob06281b5f7f53e864ef9e9ffee8d2b0be627e9982
1 ; RUN: llc < %s | FileCheck %s
2 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-w64-windows-gnu"
5 @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @g, ptr null }]
7 declare i32 @__gxx_personality_seh0(...)
9 ; Function Attrs: nounwind
10 define void @f() #0 personality ptr @__gxx_personality_seh0 {
11 entry:
12   invoke void @g()
13           to label %exit unwind label %lpad
15 lpad:                                             ; preds = %entry
16   landingpad { ptr, i32 }
17           cleanup
18   unreachable
20 exit:                                             ; preds = %entry
21   unreachable
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
30 define void @g() {
31   unreachable
33 ; CHECK-LABEL: g:
34 ; CHECK: nop
36 attributes #0 = { nounwind }