1 ; Assertion `Encoding == DW_EH_PE_absptr && "Can handle absptr encoding only"' failed.
2 ; Broken in r208166, fixed in 208715.
4 ; RUN: llc -mtriple=arm-linux-androideabi -o - -filetype=asm -relocation-model=pic -simplifycfg-require-and-preserve-domtree=1 %s
6 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
7 target triple = "armv4t--linux-androideabi"
9 @_ZTIi = external constant ptr
11 define void @_Z3fn2v() #0 personality ptr @__gxx_personality_v0 {
13 invoke void @_Z3fn1v()
14 to label %try.cont unwind label %lpad
16 lpad: ; preds = %entry
17 %0 = landingpad { ptr, i32 }
19 %1 = extractvalue { ptr, i32 } %0, 1
20 %2 = tail call i32 @llvm.eh.typeid.for(ptr @_ZTIi) #2
21 %matches = icmp eq i32 %1, %2
22 br i1 %matches, label %catch, label %eh.resume
24 catch: ; preds = %lpad
25 %3 = extractvalue { ptr, i32 } %0, 0
26 %4 = tail call ptr @__cxa_begin_catch(ptr %3) #2
27 tail call void @__cxa_end_catch() #2
30 try.cont: ; preds = %entry, %catch
33 eh.resume: ; preds = %lpad
34 resume { ptr, i32 } %0
37 declare void @_Z3fn1v() #0
39 declare i32 @__gxx_personality_v0(...)
41 ; Function Attrs: nounwind readnone
42 declare i32 @llvm.eh.typeid.for(ptr) #1
44 declare ptr @__cxa_begin_catch(ptr)
46 declare void @__cxa_end_catch()
48 attributes #0 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
49 attributes #1 = { nounwind readnone }
50 attributes #2 = { nounwind }