X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FTransforms%2FInstCombine%2Fobjsize-64.ll;h=5046724038a3f28b75f8eca2d956d55a461e9d4f;hb=4635abb06529379bf2641b26d07d29aed5ce59f4;hp=7a39f461948f246cd05f0708ecabcb4be83f353a;hpb=3769fe149bb47dfdaa8ac39b7a4c26cf98ec503e;p=oota-llvm.git diff --git a/test/Transforms/InstCombine/objsize-64.ll b/test/Transforms/InstCombine/objsize-64.ll index 7a39f461948..5046724038a 100644 --- a/test/Transforms/InstCombine/objsize-64.ll +++ b/test/Transforms/InstCombine/objsize-64.ll @@ -7,24 +7,26 @@ declare i32 @__gxx_personality_v0(...) declare void @__cxa_call_unexpected(i8*) declare i64 @llvm.objectsize.i64(i8*, i1) nounwind readonly -; CHECK: @f1 -define i64 @f1() { +; CHECK-LABEL: @f1( +define i64 @f1(i8 **%esc) { %call = call i8* @malloc(i32 4) + store i8* %call, i8** %esc %size = call i64 @llvm.objectsize.i64(i8* %call, i1 false) -; CHECK-NEXT: ret i64 4 +; CHECK: ret i64 4 ret i64 %size } -; CHECK: @f2 -define i64 @f2() nounwind uwtable ssp { +; CHECK-LABEL: @f2( +define i64 @f2(i8** %esc) nounwind uwtable ssp { entry: -; CHECK: invoke i8 @llvm.expect.i8(i8 0, i8 0) +; CHECK: invoke noalias i8* @_Znwm(i64 13) %call = invoke noalias i8* @_Znwm(i64 13) to label %invoke.cont unwind label %lpad invoke.cont: ; CHECK: ret i64 13 + store i8* %call, i8** %esc %0 = tail call i64 @llvm.objectsize.i64(i8* %call, i1 false) ret i64 %0