Guard fabs to bfc convert with V6T2 flag
[oota-llvm.git] / test / CodeGen / ARM / 2009-08-31-LSDA-Name.ll
1 ; RUN: llc < %s -mtriple=arm-apple-darwin9 -march=arm | FileCheck %s
2
3 ; CHECK: .cfi_lsda 16, [[LABEL:.*]]
4 ; CHECK: .long  [[LABEL]]-
5 ; CHECK: [[LABEL]]:
6 ; CHECK: .byte   255                     @ @LPStart Encoding = omit
7
8 %struct.A = type { i32* }
9
10 define void @"\01-[MyFunction Name:]"() personality i8* bitcast (i32 (...)* @__gxx_personality_sj0 to i8*) {
11 entry:
12   %save_filt.1 = alloca i32
13   %save_eptr.0 = alloca i8*
14   %a = alloca %struct.A
15   %eh_exception = alloca i8*
16   %eh_selector = alloca i32
17   %"alloca point" = bitcast i32 0 to i32
18   call void @_ZN1AC1Ev(%struct.A* %a)
19   invoke void @_Z3barv()
20           to label %invcont unwind label %lpad
21
22 invcont:                                          ; preds = %entry
23   call void @_ZN1AD1Ev(%struct.A* %a) nounwind
24   br label %return
25
26 bb:                                               ; preds = %ppad
27   %eh_select = load i32, i32* %eh_selector
28   store i32 %eh_select, i32* %save_filt.1, align 4
29   %eh_value = load i8*, i8** %eh_exception
30   store i8* %eh_value, i8** %save_eptr.0, align 4
31   call void @_ZN1AD1Ev(%struct.A* %a) nounwind
32   %0 = load i8*, i8** %save_eptr.0, align 4
33   store i8* %0, i8** %eh_exception, align 4
34   %1 = load i32, i32* %save_filt.1, align 4
35   store i32 %1, i32* %eh_selector, align 4
36   br label %Unwind
37
38 return:                                           ; preds = %invcont
39   ret void
40
41 lpad:                                             ; preds = %entry
42   %exn = landingpad {i8*, i32}
43            cleanup
44   %eh_ptr = extractvalue {i8*, i32} %exn, 0
45   store i8* %eh_ptr, i8** %eh_exception
46   %eh_select2 = extractvalue {i8*, i32} %exn, 1
47   store i32 %eh_select2, i32* %eh_selector
48   br label %ppad
49
50 ppad:                                             ; preds = %lpad
51   br label %bb
52
53 Unwind:                                           ; preds = %bb
54   %eh_ptr3 = load i8*, i8** %eh_exception
55   call void @_Unwind_SjLj_Resume(i8* %eh_ptr3)
56   unreachable
57 }
58
59 define linkonce_odr void @_ZN1AC1Ev(%struct.A* %this) {
60 entry:
61   %this_addr = alloca %struct.A*
62   %"alloca point" = bitcast i32 0 to i32
63   store %struct.A* %this, %struct.A** %this_addr
64   %0 = call i8* @_Znwm(i32 4)
65   %1 = bitcast i8* %0 to i32*
66   %2 = load %struct.A*, %struct.A** %this_addr, align 4
67   %3 = getelementptr inbounds %struct.A, %struct.A* %2, i32 0, i32 0
68   store i32* %1, i32** %3, align 4
69   br label %return
70
71 return:                                           ; preds = %entry
72   ret void
73 }
74
75 declare i8* @_Znwm(i32)
76
77 define linkonce_odr void @_ZN1AD1Ev(%struct.A* %this) nounwind {
78 entry:
79   %this_addr = alloca %struct.A*
80   %"alloca point" = bitcast i32 0 to i32
81   store %struct.A* %this, %struct.A** %this_addr
82   %0 = load %struct.A*, %struct.A** %this_addr, align 4
83   %1 = getelementptr inbounds %struct.A, %struct.A* %0, i32 0, i32 0
84   %2 = load i32*, i32** %1, align 4
85   %3 = bitcast i32* %2 to i8*
86   call void @_ZdlPv(i8* %3) nounwind
87   br label %bb
88
89 bb:                                               ; preds = %entry
90   br label %return
91
92 return:                                           ; preds = %bb
93   ret void
94 }
95
96 declare void @_ZdlPv(i8*) nounwind
97
98 declare void @_Z3barv()
99
100 declare i32 @llvm.eh.typeid.for(i8*) nounwind
101
102 declare i32 @__gxx_personality_sj0(...)
103
104 declare void @_Unwind_SjLj_Resume(i8*)