brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 20d64fc Raw
37 lines · plain
1; RUN: llc -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips -O3 -filetype=obj < %s | llvm-objdump -s -j .gcc_except_table - | FileCheck %s2 3; CHECK: Contents of section .gcc_except_table:4; CHECK-NEXT: 0000 ff9b1501 0c001000 00100e1e 011e18005; CHECK-NEXT: 0010 00010000 000000006 7@_ZTIi = external constant ptr8 9define dso_local i32 @main() local_unnamed_addr norecurse personality ptr @__gxx_personality_v0 {10entry:11  %exception.i = tail call ptr @__cxa_allocate_exception(i32 4) nounwind12  store i32 5, ptr %exception.i, align 1613  invoke void @__cxa_throw(ptr %exception.i, ptr @_ZTIi, ptr null) noreturn14          to label %.noexc unwind label %return15 16.noexc:17  unreachable18 19return:20  %0 = landingpad { ptr, i32 }21          catch ptr null22  %1 = extractvalue { ptr, i32 } %0, 023  %2 = tail call ptr @__cxa_begin_catch(ptr %1) nounwind24  tail call void @__cxa_end_catch()25  ret i32 026}27 28declare i32 @__gxx_personality_v0(...)29 30declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr31 32declare void @__cxa_end_catch() local_unnamed_addr33 34declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr35 36declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr37