1 ; RUN: llc -mtriple=mipsel-linux-gnu < %s | FileCheck %s 2 ; RUN: llc -mtriple=mipsel-linux-android < %s | FileCheck %s 3 4 define i32 @main() { 5 ; CHECK: .cfi_startproc 6 ; CHECK: .cfi_personality 128, DW.ref.__gxx_personality_v0 7 8 entry: 9 invoke void @foo() to label %cont unwind label %lpad 10 ; CHECK: foo 11 ; CHECK: jalr 12 13 lpad: 14 %0 = landingpad { i8*, i32 } personality i8* 15 bitcast (i32 (...)* @__gxx_personality_v0 to i8*) catch i8* null 16 ret i32 0 17 18 cont: 19 ret i32 0 20 } 21 ; CHECK: .cfi_endproc 22 23 declare i32 @__gxx_personality_v0(...) 24 25 declare void @foo() 26 27 ; CHECK: .hidden DW.ref.__gxx_personality_v0 28 ; CHECK: .weak DW.ref.__gxx_personality_v0 29 ; CHECK: .section .data.DW.ref.__gxx_personality_v0,"aGw",@progbits,DW.ref.__gxx_personality_v0,comdat 30 ; CHECK: .align 2 31 ; CHECK: .type DW.ref.__gxx_personality_v0,@object 32 ; CHECK: .size DW.ref.__gxx_personality_v0, 4 33 ; CHECK: DW.ref.__gxx_personality_v0: 34 ; CHECK: .4byte __gxx_personality_v0 35