summaryrefslogtreecommitdiff
path: root/test/Transforms/InstCombine
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-04-09 04:43:46 +0000
committerNadav Rotem <nrotem@apple.com>2013-04-09 04:43:46 +0000
commite43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2 (patch)
treed9c3b1c5a89293136e4e16b14a3760d0274aa4ea /test/Transforms/InstCombine
parent6ed9284c2bcfb81fa0303409c6bd4366bc1e822a (diff)
downloadllvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.tar.gz
llvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.tar.bz2
llvm-e43e2d8cf0a5a05a1d1ed5abbc2134834a9b06d2.tar.xz
Revert 179071 because it is not the right way to support non standard new/new[] operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstCombine')
-rw-r--r--test/Transforms/InstCombine/invoke.ll16
-rw-r--r--test/Transforms/InstCombine/objsize-64.ll2
2 files changed, 17 insertions, 1 deletions
diff --git a/test/Transforms/InstCombine/invoke.ll b/test/Transforms/InstCombine/invoke.ll
index 4ef86ddb4d..04eaf86a28 100644
--- a/test/Transforms/InstCombine/invoke.ll
+++ b/test/Transforms/InstCombine/invoke.ll
@@ -47,3 +47,19 @@ lpad:
unreachable
}
+; CHECK: @f3
+define void @f3() nounwind uwtable ssp {
+; CHECK: invoke void @llvm.donothing()
+ %call = invoke noalias i8* @_Znwm(i64 13)
+ to label %invoke.cont unwind label %lpad
+
+invoke.cont:
+ ret void
+
+lpad:
+ %1 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+ filter [0 x i8*] zeroinitializer
+ %2 = extractvalue { i8*, i32 } %1, 0
+ tail call void @__cxa_call_unexpected(i8* %2) noreturn nounwind
+ unreachable
+}
diff --git a/test/Transforms/InstCombine/objsize-64.ll b/test/Transforms/InstCombine/objsize-64.ll
index 6ecc830440..530e1234b4 100644
--- a/test/Transforms/InstCombine/objsize-64.ll
+++ b/test/Transforms/InstCombine/objsize-64.ll
@@ -25,7 +25,7 @@ entry:
to label %invoke.cont unwind label %lpad
invoke.cont:
-; CHECK: ret i64 %0
+; CHECK: ret i64 13
store i8* %call, i8** %esc
%0 = tail call i64 @llvm.objectsize.i64(i8* %call, i1 false)
ret i64 %0