Searched refs:StrNCmp (Results 1 – 3 of 3) sorted by relevance
/external/compiler-rt/lib/asan/tests/ |
D | asan_str_test.cc | 319 void RunStrNCmpTest(PointerToStrNCmp StrNCmp) { in RunStrNCmpTest() argument 326 Ident(StrNCmp(s1, s2, size + 2)); in RunStrNCmpTest() 329 Ident(StrNCmp(s1 + size - 2, s2 + size - 2, size)); in RunStrNCmpTest() 331 Ident(StrNCmp(s1 - 1, s2 - 1, 0)); in RunStrNCmpTest() 332 Ident(StrNCmp(s1 + size - 1, s2 + size - 1, 1)); in RunStrNCmpTest() 334 EXPECT_DEATH(Ident(StrNCmp)(s1 - 1, s2, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 335 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 - 1, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest() 336 EXPECT_DEATH(Ident(StrNCmp)(s1 + size, s2, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 337 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 + size, 1), RightOOBReadMessage(0)); in RunStrNCmpTest() 339 EXPECT_DEATH(Ident(StrNCmp)(s1 + 1, s2 + 1, size), RightOOBReadMessage(0)); in RunStrNCmpTest() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 135 Value *StrNCmp = M->getOrInsertFunction("strncmp", in EmitStrNCmp() local 142 CallInst *CI = B.CreateCall3(StrNCmp, CastToCStr(Ptr1, B), in EmitStrNCmp() 145 if (const Function *F = dyn_cast<Function>(StrNCmp->stripPointerCasts())) in EmitStrNCmp()
|
D | SimplifyLibCalls.cpp | 949 Value *StrNCmp = EmitStrNCmp(CI->getArgOperand(0), CI->getArgOperand(1), in callOptimizer() local 951 if (!StrNCmp) in callOptimizer() 955 Value *Cmp = B.CreateICmp(Old->getPredicate(), StrNCmp, in callOptimizer() 956 ConstantInt::getNullValue(StrNCmp->getType()), in callOptimizer() 2065 static StrNCmpOpt StrNCmp; variable 2137 return &StrNCmp; in lookupOptimization()
|