llvm.org GIT mirror llvm / b072dd9
Update the tests to the new EH scheme. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138891 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 8 years ago
5 changed file(s) with 26 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
77 br i1 %cond, label %Inv, label %Cont
88 Inv: ; preds = %Entry
99 invoke void @foo( )
10 to label %Ok unwind label %Cont
10 to label %Ok unwind label %LPad
1111 Ok: ; preds = %Inv
1212 br label %Cont
13 LPad:
14 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
15 catch i8* null
16 br label %Cont
1317 Cont: ; preds = %Ok, %Inv, %Entry
14 %X = phi i32 [ 0, %Entry ], [ 1, %Ok ], [ 0, %Inv ] ; [#uses=1]
18 %X = phi i32 [ 0, %Entry ], [ 1, %Ok ], [ 0, %LPad ] ; [#uses=1]
1519 ret i32 %X
1620 }
1721
22 declare i32 @__gxx_personality_v0(...)
55 br i1 true, label %T, label %F
66 F: ; preds = %0
77 %X = invoke i32 @foo( )
8 to label %T unwind label %T ; [#uses=0]
9 T: ; preds = %F, %F, %0
8 to label %T unwind label %LP ; [#uses=0]
9 LP:
10 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
11 catch i8* null
12 br label %T
13 T:
1014 ret void
1115 }
1216
17 declare i32 @__gxx_personality_v0(...)
3030 bb177: ; preds = %bb149
3131 unreachable
3232 cleanup: ; preds = %bb149, %bb114, %bb67
33 unwind
33 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
34 cleanup
35 resume { i8*, i32 } %val
3436 }
3537
3638 declare double @sin(double)
3840 declare double @log(double)
3941
4042 declare double @sqrt(double)
43
44 declare i32 @__gxx_personality_v0(...)
66 to label %UnifiedReturnBlock unwind label %lpad
77
88 lpad:
9 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
10 cleanup
911 unreachable
1012
1113 UnifiedReturnBlock:
8989 %c = call i64 @test4c(i64 %b)
9090 ret i64 %c
9191 B:
92 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
93 catch i8* null
9294 ret i64 0
9395 }
9496 ; CHECK: define i64 @test4b()
120122 %c = call i64 @test5c({i64,i64} %a)
121123 ret i64 %c
122124 B:
125 %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
126 catch i8* null
123127 ret i64 0
124128 }
125129
203207 ret void
204208 }
205209
210 declare i32 @__gxx_personality_v0(...)