1 ; RUN: llc -mtriple=mips-linux-gnu -mcpu=mips32r2 -mattr=+micromips -O3 -filetype=obj < %s | llvm-objdump -s -j .gcc_except_table - | FileCheck %s
3 ; CHECK: Contents of section .gcc_except_table:
4 ; CHECK-NEXT: 0000 ff9b1501 0c011100 00110e1f 011f1800
5 ; CHECK-NEXT: 0010 00010000 00000000
7 @_ZTIi = external constant ptr
9 define dso_local i32 @main() local_unnamed_addr norecurse personality ptr @__gxx_personality_v0 {
11 %exception.i = tail call ptr @__cxa_allocate_exception(i32 4) nounwind
12 store i32 5, ptr %exception.i, align 16
13 invoke void @__cxa_throw(ptr %exception.i, ptr @_ZTIi, ptr null) noreturn
14 to label %.noexc unwind label %return
20 %0 = landingpad { ptr, i32 }
22 %1 = extractvalue { ptr, i32 } %0, 0
23 %2 = tail call ptr @__cxa_begin_catch(ptr %1) nounwind
24 tail call void @__cxa_end_catch()
28 declare i32 @__gxx_personality_v0(...)
30 declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr
32 declare void @__cxa_end_catch() local_unnamed_addr
34 declare ptr @__cxa_allocate_exception(i32) local_unnamed_addr
36 declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr