Home
last modified time | relevance | path

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

/external/compiler-rt/lib/asan/tests/
Dasan_str_test.cc317 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/
DBuildLibCalls.cpp124 Value *StrNCmp = M->getOrInsertFunction( in EmitStrNCmp() local
127 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), in EmitStrNCmp()
130 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in EmitStrNCmp()
DSimplifyLibCalls.cpp704 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in optimizeStrStr() local
706 if (!StrNCmp) in optimizeStrStr()
711 B.CreateICmp(Old->getPredicate(), StrNCmp, in optimizeStrStr()
712 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr()