Home
last modified time | relevance | path

Searched refs:StrNCmp (Results 1 – 3 of 3) sorted by relevance

/external/compiler-rt/lib/asan/tests/
Dasan_test.cc1165 void RunStrNCmpTest(PointerToStrNCmp StrNCmp) { in RunStrNCmpTest() argument
1172 Ident(StrNCmp(s1, s2, size + 2)); in RunStrNCmpTest()
1175 Ident(StrNCmp(s1 + size - 2, s2 + size - 2, size)); in RunStrNCmpTest()
1177 Ident(StrNCmp(s1 - 1, s2 - 1, 0)); in RunStrNCmpTest()
1178 Ident(StrNCmp(s1 + size - 1, s2 + size - 1, 1)); in RunStrNCmpTest()
1180 EXPECT_DEATH(Ident(StrNCmp)(s1 - 1, s2, 1), LeftOOBErrorMessage(1)); in RunStrNCmpTest()
1181 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 - 1, 1), LeftOOBErrorMessage(1)); in RunStrNCmpTest()
1182 EXPECT_DEATH(Ident(StrNCmp)(s1 + size, s2, 1), RightOOBErrorMessage(0)); in RunStrNCmpTest()
1183 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 + size, 1), RightOOBErrorMessage(0)); in RunStrNCmpTest()
1185 EXPECT_DEATH(Ident(StrNCmp)(s1 + 1, s2 + 1, size), RightOOBErrorMessage(0)); in RunStrNCmpTest()
[all …]
/external/llvm/lib/Transforms/Utils/
DBuildLibCalls.cpp87 Value *StrNCmp = M->getOrInsertFunction("strncmp", AttrListPtr::get(AWI, 3), in EmitStrNCmp() local
92 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), in EmitStrNCmp()
95 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in EmitStrNCmp()
/external/llvm/lib/Transforms/Scalar/
DSimplifyLibCalls.cpp682 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in CallOptimizer() local
687 Value *Cmp = B.CreateICmp(Old->getPredicate(), StrNCmp, in CallOptimizer()
688 ConstantInt::getNullValue(StrNCmp->getType()), in CallOptimizer()
1477 StrCmpOpt StrCmp; StrNCmpOpt StrNCmp; StrCpyOpt StrCpy; StrCpyOpt StrCpyChk; member in __anon944fadec0311::SimplifyLibCalls
1542 Optimizations["strncmp"] = &StrNCmp; in InitOptimizations()