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
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
Feature
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
Scripts
TableGen
Transforms Normalize memcmp constant folding results. 2012-11-12 14:00:45 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt
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