llvm-6502/test
Dan Gohman 8ca83b4111 Remove the folding rule
getelementptr (i8* inttoptr (i64 1 to i8*), i32 -1) 
  to
  inttoptr (i64 0 to i8*)
from the VMCore constant folder. It didn't handle sign-extension properly
in the case where the source integer is smaller than a pointer size. And,
it relied on an assumption about sizeof(i8).

The Analysis constant folder still folds these kinds of things; it has
access to TargetData, so it can do them right.

Add a testcase which tests that the VMCore constant folder doesn't
miscompile this, and that the Analysis folder does fold it.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94750 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-28 18:08:26 +00:00
..
Analysis -disable-output is no longer needed with -analyze. 2010-01-26 19:25:59 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode Fix the bitcode reader to deserialize nuw/nsw/etc. bits properly in the case 2010-01-25 21:55:39 +00:00
BugPoint
CodeGen convert the last 3 targets to use EmitFunctionBody() now that 2010-01-28 06:22:43 +00:00
DebugInfo Generate DEBUG_VALUE comments on x86. The (limited) 2010-01-26 00:09:58 +00:00
ExecutionEngine
Feature
FrontendAda
FrontendC
FrontendC++ this test has been failing or a long time, just disable it for now to get 2010-01-24 19:13:39 +00:00
FrontendFortran
FrontendObjC
FrontendObjC++
Integer
lib
Linker
LLVMC Revert commit 94666 (ddunbar) [Suppress clang warning about unused arguments]. 2010-01-27 10:08:08 +00:00
MC wirte up .file and .file to the mc asmparser. 2010-01-25 19:02:58 +00:00
Other Remove the folding rule 2010-01-28 18:08:26 +00:00
Scripts
TableGen
Transforms Fix PR6165. The bug was that LHSKnownZero was being and'd with DemandedMask 2010-01-28 17:22:42 +00:00
Unit
Verifier
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
site.exp.in
TestRunner.sh