[PowerPC] Recommit r314244 with refactoring and off by default
[llvm-core.git] / test / CodeGen / X86 / eh-unknown.ll
blob7c495bdadc676b6db6970191272ebb92662246af
1 ; RUN: llc -mtriple=x86_64-windows-msvc < %s | FileCheck %s
3 ; An unknown personality forces us to emit an Itanium LSDA. Make sure that the
4 ; Itanium call site table actually tells the personality to keep unwinding,
5 ; i.e. we have an entry and it says "has no landing pad".
7 declare void @throwit()
8 declare void @__unknown_ehpersonality(...)
10 define void @use_unknown_ehpersonality()
11     personality void (...)* @__unknown_ehpersonality {
12 entry:
13   call void @throwit()
14   unreachable
17 ; CHECK-LABEL: use_unknown_ehpersonality:
18 ; CHECK: .Lfunc_begin0:
19 ; CHECK: .seh_handler __unknown_ehpersonality, @unwind, @except
20 ; CHECK: callq throwit
21 ; CHECK: .Lfunc_end0:
22 ; CHECK: .seh_handlerdata
23 ; CHECK: .Lexception0:
24 ; CHECK:  .byte   255                     # @LPStart Encoding = omit
25 ; CHECK:  .byte   0                       # @TType Encoding = absptr
26 ; CHECK:  .asciz  "\217\200"              # @TType base offset
27 ; CHECK:  .byte   3                       # Call site Encoding = udata4
28 ; CHECK:  .byte   13                      # Call site table length
29 ; CHECK:  .long   .Lfunc_begin0-.Lfunc_begin0 # >> Call Site 1 <<
30 ; CHECK:  .long   .Lfunc_end0-.Lfunc_begin0 #   Call between .Lfunc_begin0 and .Lfunc_end0
31 ; CHECK:  .long   0                       #     has no landing pad
32 ; CHECK:  .byte   0                       #   On action: cleanup