[Demangle] Add a few more options to the microsoft demangler
[llvm-complete.git] / test / CodeGen / X86 / gnu-seh-nolpads.ll
blob311f4d522b1df99f5f6764465b5fc1fc15932d20
1 ; RUN: llc -mtriple=x86_64-windows-gnu < %s | FileCheck %s
3 declare void @throwit()
4 declare void @__gxx_personality_seh0(...)
5 declare void @__gcc_personality_seh0(...)
7 define void @use_gxx_seh()
8     personality void (...)* @__gxx_personality_seh0 {
9 entry:
10   call void @throwit()
11   unreachable
14 ; CHECK-LABEL: use_gxx_seh:
15 ; CHECK: .seh_proc use_gxx_seh
16 ; CHECK-NOT: .seh_handler __gxx_personality_seh0
17 ; CHECK: callq throwit
18 ; CHECK: .seh_handlerdata
19 ; CHECK: .seh_endproc
21 define void @use_gcc_seh()
22     personality void (...)* @__gcc_personality_seh0 {
23 entry:
24   call void @throwit()
25   unreachable
28 ; CHECK-LABEL: use_gcc_seh:
29 ; CHECK: .seh_proc use_gcc_seh
30 ; CHECK-NOT: .seh_handler __gcc_personality_seh0
31 ; CHECK: callq throwit
32 ; CHECK: .seh_handlerdata
33 ; CHECK: .seh_endproc