Searched refs:StrNCmp (Results 1 – 3 of 3) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 317 void RunStrNCmpTest(PointerToStrNCmp StrNCmp) { in RunStrNCmpTest() argument 324 Ident(StrNCmp(s1, s2, size + 2)); in RunStrNCmpTest() 327 Ident(StrNCmp(s1 + size - 2, s2 + size - 2, size)); in RunStrNCmpTest() 329 Ident(StrNCmp(s1 - 1, s2 - 1, 0)); in RunStrNCmpTest() 330 Ident(StrNCmp(s1 + size - 1, s2 + size - 1, 1)); in RunStrNCmpTest() 332 EXPECT_DEATH(Ident(StrNCmp)(s1 - 1, s2, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 333 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 - 1, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 334 EXPECT_DEATH(Ident(StrNCmp)(s1 + size, s2, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 335 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 + size, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 337 EXPECT_DEATH(Ident(StrNCmp)(s1 + 1, s2 + 1, size), RightOOBReadMessage(0)); in RunStrNCmpTest() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 98 Value *StrNCmp = M->getOrInsertFunction( in EmitStrNCmp() local 102 StrNCmp, {CastToCStr(Ptr1, B), CastToCStr(Ptr2, B), Len}, "strncmp"); in EmitStrNCmp() 104 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in EmitStrNCmp()
|
D | SimplifyLibCalls.cpp | 706 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in optimizeStrStr() local 708 if (!StrNCmp) in optimizeStrStr() 713 B.CreateICmp(Old->getPredicate(), StrNCmp, in optimizeStrStr() 714 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr()
|