summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-08-31 21:04:11 +0000
committerBill Wendling <isanbard@gmail.com>2011-08-31 21:04:11 +0000
commite6174a2c85ef9ee6094e91378f6f06a0c429a591 (patch)
tree71347b9bd8112e2eca68d114f23d42ec5adb2279 /llvm/test/CodeGen
parentfa6f5d6ab8c3f7ba54c1ca1fedc343c2b8b76359 (diff)
downloadbcm5719-llvm-e6174a2c85ef9ee6094e91378f6f06a0c429a591.tar.gz
bcm5719-llvm-e6174a2c85ef9ee6094e91378f6f06a0c429a591.zip
Update more tests to the new EH scheme.
llvm-svn: 138894
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll3
-rw-r--r--llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll17
2 files changed, 8 insertions, 12 deletions
diff --git a/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll b/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
index 393062abf78..a072ab70df5 100644
--- a/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
+++ b/llvm/test/CodeGen/Generic/2004-02-08-UnwindSupport.ll
@@ -12,6 +12,9 @@ cont: ; preds = %0
ret i32 1
EH: ; preds = %0
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
ret i32 0
}
+declare i32 @__gxx_personality_v0(...)
diff --git a/llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll b/llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll
index 0c116740944..ecf45efee2e 100644
--- a/llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll
+++ b/llvm/test/CodeGen/PowerPC/2007-11-16-landingpad-split.ll
@@ -18,11 +18,10 @@ bb30.preheader: ; preds = %entry
br label %bb30
unwind: ; preds = %cond_true, %entry
- %eh_ptr = call i8* @llvm.eh.exception() ; <i8*> [#uses=2]
- %eh_select = call i64 (i8*, i8*, ...)* @llvm.eh.selector.i64(i8* %eh_ptr, i8* bitcast (void ()* @__gxx_personality_v0 to i8*), i8* null) ; <i64> [#uses=0]
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ catch i8* null
call void @llvm.stackrestore(i8* %tmp4)
- call void @_Unwind_Resume(i8* %eh_ptr)
- unreachable
+ resume { i8*, i32 } %exn
invcont23: ; preds = %cond_true
%tmp27 = load i64* %tmp26, align 8 ; <i64> [#uses=1]
@@ -46,14 +45,8 @@ declare i8* @llvm.stacksave() nounwind
declare void @Foo(i8**)
-declare i8* @llvm.eh.exception() nounwind
-
-declare i64 @llvm.eh.selector.i64(i8*, i8*, ...) nounwind
-
-declare void @__gxx_personality_v0()
-
-declare void @_Unwind_Resume(i8*)
-
declare void @Bar(i64, %struct.Range*)
declare void @llvm.stackrestore(i8*) nounwind
+
+declare i32 @__gxx_personality_v0(...)
OpenPOWER on IntegriCloud