[ARM] Enable shrink-wrapping by default.
[oota-llvm.git] / test / CodeGen / ARM / 2014-05-14-DwarfEHCrash.ll
1 ; Assertion `Encoding == DW_EH_PE_absptr && "Can handle absptr encoding only"' failed.
2 ; Broken in r208166, fixed in 208715.
3
4 ; RUN: llc -mtriple=arm-linux-androideabi -o - -filetype=asm -relocation-model=pic %s
5
6 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
7 target triple = "armv4t--linux-androideabi"
8
9 @_ZTIi = external constant i8*
10
11 define void @_Z3fn2v() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
12 entry:
13   invoke void @_Z3fn1v()
14           to label %try.cont unwind label %lpad
15
16 lpad:                                             ; preds = %entry
17   %0 = landingpad { i8*, i32 }
18           catch i8* bitcast (i8** @_ZTIi to i8*)
19   %1 = extractvalue { i8*, i32 } %0, 1
20   %2 = tail call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTIi to i8*)) #2
21   %matches = icmp eq i32 %1, %2
22   br i1 %matches, label %catch, label %eh.resume
23
24 catch:                                            ; preds = %lpad
25   %3 = extractvalue { i8*, i32 } %0, 0
26   %4 = tail call i8* @__cxa_begin_catch(i8* %3) #2
27   tail call void @__cxa_end_catch() #2
28   br label %try.cont
29
30 try.cont:                                         ; preds = %entry, %catch
31   ret void
32
33 eh.resume:                                        ; preds = %lpad
34   resume { i8*, i32 } %0
35 }
36
37 declare void @_Z3fn1v() #0
38
39 declare i32 @__gxx_personality_v0(...)
40
41 ; Function Attrs: nounwind readnone
42 declare i32 @llvm.eh.typeid.for(i8*) #1
43
44 declare i8* @__cxa_begin_catch(i8*)
45
46 declare void @__cxa_end_catch()
47
48 attributes #0 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "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 }