From: Florian Hahn Date: Tue, 30 Nov 2021 13:50:01 +0000 (+0000) Subject: [BuildLibCalls] Add memset_chk test. X-Git-Tag: upstream/15.0.7~24494 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f4dd1b2dca8ef877eb2447af8b33ae7e68ba1be;p=platform%2Fupstream%2Fllvm.git [BuildLibCalls] Add memset_chk test. --- diff --git a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll index 586ad6a..0e6923f 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll @@ -643,6 +643,9 @@ declare i8* @memmove(i8*, i8*, i64) ; CHECK: declare i8* @memset(i8* writeonly, i32, i64) [[ARGMEMONLY_NOFREE_NOUNWIND_WILLRETURN:#[0-9]+]] declare i8* @memset(i8*, i32, i64) +; CHECK: declare i8* @__memset_chk(i8*, i32, i64, i64) [[NOFREE:#[0-9]+]] +declare i8* @__memset_chk(i8*, i32, i64, i64) + ; CHECK: declare noundef i32 @mkdir(i8* nocapture noundef readonly, i16 noundef zeroext) [[NOFREE_NOUNWIND]] declare i32 @mkdir(i8*, i16 zeroext) @@ -667,7 +670,7 @@ declare float @nearbyintf(float) ; CHECK: declare x86_fp80 @nearbyintl(x86_fp80) [[NOFREE_NOUNWIND_WILLRETURN]] declare x86_fp80 @nearbyintl(x86_fp80) -; CHECK: declare noundef i32 @open(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE:#[0-9]+]] +; CHECK: declare noundef i32 @open(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE]] declare i32 @open(i8*, i32, ...) ; CHECK-LINUX: declare noundef i32 @open64(i8* nocapture noundef readonly, i32 noundef, ...) [[NOFREE]]