projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Reassociate] Add initial support for vector instructions.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
objsize-64.ll
diff --git
a/test/Transforms/InstCombine/objsize-64.ll
b/test/Transforms/InstCombine/objsize-64.ll
index 77b43ecd235c3c8201eaf394446945c3e4e1968f..5046724038a3f28b75f8eca2d956d55a461e9d4f 100644
(file)
--- 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
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)
%call = call i8* @malloc(i32 4)
+ store i8* %call, i8** %esc
%size = call i64 @llvm.objectsize.i64(i8* %call, i1 false)
%size = call i64 @llvm.objectsize.i64(i8* %call, i1 false)
-; CHECK
-NEXT
: ret i64 4
+; CHECK: ret i64 4
ret i64 %size
}
ret i64 %size
}
-; CHECK
: @f2
-define i64 @f2() nounwind uwtable ssp {
+; CHECK
-LABEL: @f2(
+define i64 @f2(
i8** %esc
) nounwind uwtable ssp {
entry:
entry:
-; CHECK:
br label
+; 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
%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
%0 = tail call i64 @llvm.objectsize.i64(i8* %call, i1 false)
ret i64 %0