llvm-6502/test/Transforms/SimplifyLibCalls
Eli Friedman 792860883e PR11061: Make simplifylibcalls fold strcmp("", x) correctly.
While I'm here, fix the related issue with strncmp, add some actual tests for strcmp and strncmp, and start using StringRef::compare for constant folding instead of using strcmp/strncmp so that the optimized IR isn't dependent on the host's implementation of strcmp.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141227 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-05 22:27:16 +00:00
..
2005-05-20-sprintf-crash.ll
2007-04-06-strchr-miscompile.ll
2008-05-19-memcmp.ll
2009-01-04-Annotate.ll
2009-02-11-NotInitialized.ll
2009-02-12-StrTo.ll Revert r64460. strtol and friends cannot be marked readonly, even with 2010-12-17 01:09:43 +00:00
2009-05-30-memcmp-byte.ll
2009-07-28-Exit.ll
2009-07-29-Exit2.ll
2010-05-30-memcpy-Struct.ll
abs.ll
debug-line.ll Preserve line number information while simplifying libcalls. 2011-03-09 21:27:52 +00:00
dg.exp
exp2.ll
FFS.ll
floor.ll test/Transforms/SimplifyLibCalls/floor.ll: Mark as XFAIL:win32 due to lack of nearbyintf on MSVC. [PR8466] 2010-10-28 06:46:04 +00:00
FPrintF.ll
FPuts.ll Fix a typo. 2010-11-30 06:03:55 +00:00
iprintf.ll Optimize fprintf -> iprintf if there are no floating point arguments 2011-03-03 14:20:22 +00:00
IsDigit.ll
memcmp.ll Move "atomic" and "volatile" designations on instructions after the opcode 2011-08-12 22:50:01 +00:00
MemCpy.ll rip out a ton of intrinsic modernization logic from AutoUpgrade.cpp, which is 2011-06-18 06:05:24 +00:00
memmove.ll
memset-64.ll
memset.ll
pow2.ll
pow-to-sqrt.ll Stop emitting instructions with the name "tmp" they eat up memory and have to be uniqued, without any benefit. 2011-09-27 20:39:19 +00:00
PR7357.ll Make sure that simplify libcalls does not replace a call with one calling 2010-06-16 19:34:01 +00:00
Printf.ll SimplifyLibCalls: Add missing legalize check on various printf to puts and 2011-02-12 18:19:57 +00:00
Puts.ll Add a puts optimization that converts puts() to putchar('\n'). 2010-11-30 06:19:18 +00:00
SPrintF.ll
StrCat.ll
StrChr.ll Simplify the loop in StrChrOptimizer. FileCheckize test. 2010-09-29 22:29:12 +00:00
StrCmp.ll PR11061: Make simplifylibcalls fold strcmp("", x) correctly. 2011-10-05 22:27:16 +00:00
StrCpy.ll
StrLen.ll
StrNCat.ll
StrNCmp.ll PR11061: Make simplifylibcalls fold strcmp("", x) correctly. 2011-10-05 22:27:16 +00:00
StrNCpy.ll
StrPBrk.ll Add strpbrk folding to SimplifyLibCalls. 2010-09-29 23:52:12 +00:00
StrRChr.ll Teach SimplifyLibCalls how to optimize strrchr. 2010-09-29 21:50:51 +00:00
StrSpn.ll Fix some broken CHECK lines. 2010-11-29 22:34:55 +00:00
StrStr.ll simplify-libcalls: fold strstr(a, b) == a -> strncmp(a, b, strlen(b)) == 0 2010-06-15 21:34:25 +00:00
ToAscii.ll
weak-symbols.ll