diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-09-01 00:58:03 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-09-01 00:58:03 +0000 |
commit | aeaa9a8b2570ef23e06f2170f08caafda9fcf311 (patch) | |
tree | 80e9590f242985b5628404f320745692c9aabbab /test/Transforms/IPConstantProp | |
parent | 340d78f4e7b95c235d0ecf315b755bebefd0a168 (diff) | |
download | external_llvm-aeaa9a8b2570ef23e06f2170f08caafda9fcf311.zip external_llvm-aeaa9a8b2570ef23e06f2170f08caafda9fcf311.tar.gz external_llvm-aeaa9a8b2570ef23e06f2170f08caafda9fcf311.tar.bz2 |
Update some tests to the new EH scheme.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138925 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IPConstantProp')
-rw-r--r-- | test/Transforms/IPConstantProp/return-argument.ll | 10 | ||||
-rw-r--r-- | test/Transforms/IPConstantProp/return-constant.ll | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/Transforms/IPConstantProp/return-argument.ll b/test/Transforms/IPConstantProp/return-argument.ll index 6d6eb24..f4b7018 100644 --- a/test/Transforms/IPConstantProp/return-argument.ll +++ b/test/Transforms/IPConstantProp/return-argument.ll @@ -36,14 +36,22 @@ define void @caller(i1 %C) { ;; propagated per-caller). %S1 = call { i32, i32 } @foo(i32 1, i32 2) %X1 = extractvalue { i32, i32 } %S1, 0 - %S2 = invoke { i32, i32 } @foo(i32 3, i32 4) to label %OK unwind label %RET + %S2 = invoke { i32, i32 } @foo(i32 3, i32 4) to label %OK unwind label %LPAD + OK: %X2 = extractvalue { i32, i32 } %S2, 0 ;; Do some stuff with the returned values which we can grep for %Z = add i32 %X1, %X2 store i32 %Z, i32* %W br label %RET + +LPAD: + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup + br label %RET + RET: ret void } +declare i32 @__gxx_personality_v0(...) diff --git a/test/Transforms/IPConstantProp/return-constant.ll b/test/Transforms/IPConstantProp/return-constant.ll index b255859..ff15df7 100644 --- a/test/Transforms/IPConstantProp/return-constant.ll +++ b/test/Transforms/IPConstantProp/return-constant.ll @@ -22,5 +22,9 @@ OK: %Y = icmp ne i32 %X, 0 ; <i1> [#uses=1] ret i1 %Y FAIL: + %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 + cleanup ret i1 false } + +declare i32 @__gxx_personality_v0(...) |