llvm-6502/test
Evan Cheng 79590b8edf Instcombine was transforming:
%shr = lshr i64 %key, 3
  %0 = load i64* %val, align 8
  %sub = add i64 %0, -1
  %and = and i64 %sub, %shr
  ret i64 %and

to:
  %shr = lshr i64 %key, 3
  %0 = load i64* %val, align 8
  %sub = add i64 %0, 2305843009213693951
  %and = and i64 %sub, %shr
  ret i64 %and

The demanded bit optimization is actually a pessimization because add -1 would
be codegen'ed as a sub 1. Teach the demanded constant shrinking optimization
to check for negated constant to make sure it is actually reducing the width
of the constant.

rdar://11793464


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160101 91177308-0d34-0410-b5e6-96231b3b80d8
2012-07-12 01:45:35 +00:00
..
Analysis Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Archive
Assembler Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Bindings/Ocaml Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Bitcode Fixed diff comparison. 2012-07-11 21:02:57 +00:00
BugPoint
CodeGen ARM: Fix optimizeCompare to correctly check safe condition. 2012-07-11 22:51:44 +00:00
DebugInfo Fix PR13202 and a regtest. 2012-07-06 08:45:08 +00:00
ExecutionEngine
Feature Convert the uses of '|&' to use '2>&1 |' instead, which works on old 2012-07-02 18:37:59 +00:00
Instrumentation
Integer
Linker Convert the uses of '|&' to use '2>&1 |' instead, which works on old 2012-07-02 18:37:59 +00:00
MC Fix instruction description of VMOV (between two ARM core registers and two single-precision resiters) (and do it properly this time! 2012-07-10 12:51:09 +00:00
Object
Other Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
Scripts
TableGen
Transforms Instcombine was transforming: 2012-07-12 01:45:35 +00:00
Unit
Verifier Fix the remaining TCL-style quotes found in the testsuite. This is 2012-07-02 19:09:46 +00:00
YAMLParser Convert the uses of '|&' to use '2>&1 |' instead, which works on old 2012-07-02 18:37:59 +00:00
CMakeLists.txt Extend the workaround from r159593 to cover a few explicit alias 2012-07-02 21:45:22 +00:00
lit.cfg llvm/test/lit.cfg: Retweak for Win32 to fix testing. 2012-07-03 03:59:34 +00:00
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh