brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · d87655a Raw
34 lines · plain
1; RUN: llc -mtriple=x86_64-windows-msvc < %s | FileCheck %s2 3; An unknown personality forces us to emit an Itanium LSDA. Make sure that the4; 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".6 7declare void @throwit()8declare void @__unknown_ehpersonality(...)9 10define void @use_unknown_ehpersonality()11    personality ptr @__unknown_ehpersonality {12entry:13  call void @throwit()14  unreachable15}16 17; CHECK-LABEL: use_unknown_ehpersonality:18; CHECK: .Lfunc_begin0:19; CHECK: .seh_handler __unknown_ehpersonality, @unwind, @except20; CHECK: callq throwit21; CHECK: .Lfunc_end0:22; CHECK: .seh_handlerdata23; CHECK: .Lexception0:24; CHECK:  .byte   255                     # @LPStart Encoding = omit25; CHECK:  .byte   255                     # @TType Encoding = omit26; CHECK:  .byte   1                       # Call site Encoding = uleb12827; CHECK:  .uleb128 .Lcst_end0-.Lcst_begin028; CHECK:  .Lcst_begin0:29; CHECK:  .uleb128 .Lfunc_begin0-.Lfunc_begin0 # >> Call Site 1 <<30; CHECK:  .uleb128 .Lfunc_end0-.Lfunc_begin0 #   Call between .Lfunc_begin0 and .Lfunc_end031; CHECK:  .byte   0                       #     has no landing pad32; CHECK:  .byte   0                       #   On action: cleanup33; CHECK:  .Lcst_end0:34