llvm-6502/test
Meador Inge 30d8f0e977 Normalize memcmp constant folding results.
The library call simplifier folds memcmp calls with all constant arguments
to a constant.  For example:

  memcmp("foo", "foo", 3) ->  0
  memcmp("hel", "foo", 3) ->  1
  memcmp("foo", "hel", 3) -> -1

The folding is implemented in terms of the system memcmp that LLVM gets
linked with.  It currently just blindly uses the value returned from
the system memcmp as the folded constant.

This patch normalizes the values returned from the system memcmp to
(-1, 0, 1) so that we get consistent results across multiple platforms.
The test cases were adjusted accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167726 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-12 14:00:45 +00:00
..
Analysis CostModel: add another known vector trunc optimization. 2012-11-06 21:17:17 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint Fix unexpected passes. These test do work with LTO on linux. I tested both 2012-10-26 02:19:02 +00:00
CodeGen Fix PR14314 2012-11-12 06:49:17 +00:00
DebugInfo Add a relocation visitor to lib object. This works via caching relocated 2012-11-07 23:22:07 +00:00
ExecutionEngine Align the data section correctly when loading an ELF file. 2012-10-29 10:47:07 +00:00
Feature Change ForceSizeOpt attribute into MinSize attribute 2012-10-30 16:32:52 +00:00
Instrumentation tsan: switch to new memory_order constants (ABI compatible) 2012-11-09 14:12:16 +00:00
Integer
Linker
MC Convert an improper CodeGen test to a MC test. 2012-11-10 04:30:40 +00:00
Object
Other Revert the series of commits starting with r166578 which introduced the 2012-11-01 08:07:29 +00:00
Scripts
TableGen
Transforms Normalize memcmp constant folding results. 2012-11-12 14:00:45 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt [CMake] Add llvm-mcmarkup to check-llvm. 2012-11-01 02:13:50 +00:00
lit.cfg llvm/test/lit.cfg: Don't use mcjit to ppc32 yet, not ready. 2012-11-01 14:28:51 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh