brintos

brintos / llvm-project-archived public Read only

0
0
Text · 717 B · b8670b7 Raw
33 lines · plain
1; RUN: llc -mtriple=x86_64-windows-gnu < %s | FileCheck %s2 3declare void @throwit()4declare void @__gxx_personality_seh0(...)5declare void @__gcc_personality_seh0(...)6 7define void @use_gxx_seh()8    personality ptr @__gxx_personality_seh0 {9entry:10  call void @throwit()11  unreachable12}13 14; CHECK-LABEL: use_gxx_seh:15; CHECK: .seh_proc use_gxx_seh16; CHECK-NOT: .seh_handler __gxx_personality_seh017; CHECK: callq throwit18; CHECK: .seh_endproc19 20define void @use_gcc_seh()21    personality ptr @__gcc_personality_seh0 {22entry:23  call void @throwit()24  unreachable25}26 27; CHECK-LABEL: use_gcc_seh:28; CHECK: .seh_proc use_gcc_seh29; CHECK-NOT: .seh_handler __gcc_personality_seh030; CHECK: callq throwit31; CHECK: .seh_endproc32 33