| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | bcmp-1.ll | 2 ; Test that the bcmp library call simplifier works correctly. 12 declare i32 @bcmp(i8*, i8*, i32) 14 ; Check bcmp(mem, mem, size) -> 0. 20 %ret = call i32 @bcmp(i8* %mem, i8* %mem, i32 %size) 24 ; Check bcmp(mem1, mem2, 0) -> 0. 30 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 0) 45 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 1) 57 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 3) 67 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 3) 77 %ret = call i32 @bcmp(i8* %mem1, i8* %mem2, i32 3) [all …]
|
| H A D | simplify-libcalls-inreg.ll | 18 ; CHECK: declare i32 @bcmp(ptr inreg nocapture, ptr inreg nocapture, i32 inreg) 19 ; CHECK-NOT: declare i32 @bcmp(ptr nocapture, ptr nocapture, i32)
|
| /llvm-project-15.0.7/libc/test/src/string/ |
| H A D | bcmp_test.cpp | 15 EXPECT_EQ(__llvm_libc::bcmp(lhs, rhs, 0), 0); in TEST() 21 EXPECT_EQ(__llvm_libc::bcmp(lhs, rhs, 2), 0); in TEST() 27 EXPECT_NE(__llvm_libc::bcmp(lhs, rhs, 2), 0); in TEST() 33 EXPECT_NE(__llvm_libc::bcmp(lhs, rhs, 2), 0); in TEST() 49 EXPECT_EQ(__llvm_libc::bcmp(lhs, rhs, i), 0); in TEST() 55 EXPECT_NE(__llvm_libc::bcmp(lhs, rhs, K_MAX_SIZE), 0); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/clang-analyzer/ |
| H A D | security.insecureAPI.bcmp.rst | 1 .. title:: clang-tidy - clang-analyzer-security.insecureAPI.bcmp 3 …p-equiv=refresh: 5;URL=https://clang.llvm.org/docs/analyzer/checkers.html#security-insecureapi-bcmp 5 clang-analyzer-security.insecureAPI.bcmp 8 The clang-analyzer-security.insecureAPI.bcmp check is an alias, please see 9 …Available Checkers <https://clang.llvm.org/docs/analyzer/checkers.html#security-insecureapi-bcmp>`_
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AArch64/ |
| H A D | bcmp-inline-small.ll | 5 declare i32 @bcmp(i8*, i8*, i64) nounwind readonly 28 ; CHECKS-NEXT: bl bcmp 34 %bcmp = call i32 @bcmp(i8* %s1, i8* %s2, i64 15) 35 %ret = icmp eq i32 %bcmp, 0 60 ; CHECKS-NEXT: bl bcmp 66 %bcmp = call i32 @bcmp(i8* %s1, i8* %s2, i64 15) 67 %ret = icmp eq i32 %bcmp, 0
|
| /llvm-project-15.0.7/llvm/test/Transforms/PGOProfile/ |
| H A D | memop_size_annotation.ll | 2 …notations=9 -pgo-test-profile-file=%t.profdata -pgo-memop-optimize-memcmp-bcmp -S | FileCheck %s -… 3 …o-instr-use -pgo-test-profile-file=%t.profdata -pgo-memop-optimize-memcmp-bcmp -S | FileCheck %s -… 37 %bcmp = call i32 @bcmp(ptr %dst, ptr %src, i64 %conv) 38 ; MEMOP_ANNOTATION: call i32 @bcmp(ptr %dst, ptr %src, i64 %conv) 64 declare i32 @bcmp(ptr, ptr, i64)
|
| H A D | memop_size_opt.ll | 1 …-threshold=90 -pgo-memop-percent-threshold=15 --pgo-memop-optimize-memcmp-bcmp -S | FileCheck %s -… 2 …t-threshold=90 -pgo-memop-percent-threshold=15 -pgo-memop-optimize-memcmp-bcmp -pass-remarks-with-… 100 %bcmp = call i32 @bcmp(ptr %dst2, ptr %src2, i64 %conv), !prof !31 101 call void @consume(i32 %memcmp, i32 %bcmp) 119 ; MEMOP_OPT: %[[RV2:.*]] = call i32 @bcmp(ptr %dst2, ptr %src2, i64 0) 122 ; MEMOP_OPT: %[[RVD2:.*]] = call i32 @bcmp(ptr %dst2, ptr %src2, i64 %conv), !prof [[NEWVP]] 189 declare i32 @bcmp(ptr, ptr, i64) 248 ; YAML-NEXT: - Memop: bcmp
|
| H A D | consecutive-zeros.ll | 34 %bcmp = call i32 @bcmp(ptr %dst, ptr %src, i64 %conv) 57 declare i32 @bcmp(ptr, ptr, i64)
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | bcmp.ll | 4 declare signext i32 @bcmp(i8* nocapture, i8* nocapture, i64) 14 %c = tail call signext i32 @bcmp(i8* %A, i8* %B, i64 2) 27 %res = tail call signext i32 @bcmp(i8* %A, i8* %B, i64 2)
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerInterceptors.cpp | 141 DEFINE_REAL(int, bcmp, const void *, const void *, size_t) in DEFINE_REAL() argument 151 ATTRIBUTE_INTERFACE int bcmp(const char *s1, const char *s2, size_t n) { in DEFINE_REAL() 154 int result = REAL(bcmp)(s1, s2, n); in DEFINE_REAL() 231 REAL(bcmp) = reinterpret_cast<memcmp_type>( in fuzzerInit() 232 getFuncAddr("bcmp", reinterpret_cast<uintptr_t>(&bcmp))); in fuzzerInit()
|
| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | warn-bad-memaccess.cpp | 7 extern "C" int bcmp(void *s1, const void *s2, unsigned n); 63 bcmp(&x1, 0, sizeof x1); // \ in test_warn() 66 bcmp(0, &x1, sizeof x1); // \ in test_warn()
|
| /llvm-project-15.0.7/libc/benchmarks/ |
| H A D | LibcDefaultImplementations.cpp | 12 extern int bcmp(const void *, const void *, size_t); 41 {__llvm_libc::bcmp, "__llvm_libc::bcmp"}}; in getBcmpConfigurations()
|
| /llvm-project-15.0.7/llvm/test/Analysis/BasicAA/ |
| H A D | libfuncs.ll | 50 declare i32 @bcmp(i8*, i8*, i64) 53 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 54 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 55 ; CHECK-NEXT: Just Ref: Ptr: i8* %a.gep.1 <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 56 ; CHECK-NEXT: NoModRef: Ptr: i8* %a.gep.5 <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 57 ; CHECK-NEXT: Just Ref: Ptr: i8* %b.gep.1 <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 58 ; CHECK-NEXT: NoModRef: Ptr: i8* %b.gep.5 <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 63 %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 4) 76 ; CHECK: Just Ref: Ptr: i8* %a <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 %n) 77 ; CHECK-NEXT: Just Ref: Ptr: i8* %b <-> %res = tail call i32 @bcmp(i8* %a, i8* %b, i64 %n) [all …]
|
| /llvm-project-15.0.7/llvm/test/Transforms/ExpandMemCmp/X86/ |
| H A D | bcmp.ll | 4 declare i32 @bcmp(i8* nocapture, i8* nocapture, i64) 16 %call = tail call i32 @bcmp(i8* %x, i8* %y, i64 8)
|
| /llvm-project-15.0.7/libc/src/string/ |
| H A D | CMakeLists.txt | 301 # bcmp 305 add_implementation(bcmp ${bcmp_name} 306 SRCS ${LIBC_SOURCE_DIR}/src/string/bcmp.cpp 307 HDRS ${LIBC_SOURCE_DIR}/src/string/bcmp.h 321 add_bcmp(bcmp) 324 add_bcmp(bcmp)
|
| H A D | bcmp.h | 16 int bcmp(const void *lhs, const void *rhs, size_t count);
|
| H A D | bcmp.cpp | 15 LLVM_LIBC_FUNCTION(int, bcmp,
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | bstring.c | 405 #define bcmp BUILTIN(bcmp) macro 406 int bcmp(const void *s1, const void *s2, size_t n); 407 #define memcmp bcmp
|
| /llvm-project-15.0.7/polly/test/ScopInfo/ |
| H A D | user_provided_assumptions-in-bb-signed-conditional.ll | 36 %bcmp = icmp ne i64 %b, 0 37 br i1 %bcmp, label %for.body, label %for.inc
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | bcmp_test.cpp | 13 int res = bcmp(a1, a2, 4 + argc); // BOOM in main()
|
| /llvm-project-15.0.7/compiler-rt/test/fuzzer/ |
| H A D | bcmp.test | 2 RUN: %cpp_compiler -DMEMCMP=bcmp %S/MemcmpTest.cpp -o %t
|
| H A D | noasan-bcmp.test | 2 RUN: %cpp_compiler -fno-sanitize=address -DMEMCMP=bcmp %S/MemcmpTest.cpp -o %t
|
| /llvm-project-15.0.7/libc/spec/ |
| H A D | llvm_libc_ext.td | 14 "bcmp",
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | sitofp.f16.ll | 109 %bcmp = fcmp oge float %b, 1.000000e+00 110 %result = xor i1 %acmp, %bcmp
|
| H A D | uitofp.f16.ll | 108 %bcmp = fcmp oge float %b, 1.000000e+00 109 %result = xor i1 %acmp, %bcmp
|