llvm/test/Other
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
..
2002-01-31-CallGraph.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2002-02-24-InlineBrokePHINodes.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2002-03-11-ConstPropCrash.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2003-02-19-LoopInfoNestingBug.ll Update these tests to match what Loop::print now prints. 2009-10-24 23:52:07 +00:00
2004-08-16-PackedConstantInlineStore.ll Remove llvm-upgrade and update tests. 2008-02-19 01:44:26 +00:00
2004-08-16-PackedGlobalConstant.ll Remove llvm-upgrade and update tests. 2008-02-19 01:44:26 +00:00
2004-08-16-PackedSelect.ll Split the Add, Sub, and Mul instruction opcodes into separate 2009-06-04 22:49:04 +00:00
2004-08-16-PackedSimple.ll Split the Add, Sub, and Mul instruction opcodes into separate 2009-06-04 22:49:04 +00:00
2004-08-20-PackedControlFlow.ll Split the Add, Sub, and Mul instruction opcodes into separate 2009-06-04 22:49:04 +00:00
2006-02-05-PassManager.ll Eliminate more redundant llvm-as calls. 2009-09-11 18:17:12 +00:00
2007-04-24-eliminate-mostly-empty-blocks.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2007-06-05-PassID.ll -disable-output is no longer needed with -analyze. 2010-01-26 19:25:59 +00:00
2007-06-28-PassManager.ll -disable-output is no longer needed with -analyze. 2010-01-26 19:25:59 +00:00
2007-09-10-PassManager.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2008-02-14-PassManager.ll Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
2008-03-19-PassManager.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2008-06-04-FieldSizeInPacked.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2008-08-14-PassManager.ll Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
2008-10-06-RemoveDeadPass.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2008-10-15-MissingSpace.ll Testcase for PR2894. 2008-10-15 22:34:34 +00:00
2009-03-31-CallGraph.ll Change tests from "opt %s" to "opt < %s" so that opt doesn't see the 2009-09-11 18:01:28 +00:00
2009-06-05-no-implicit-float.ll fix bogus test 2010-01-09 19:24:49 +00:00
2009-09-14-function-elements.ll Forbid arrays of function-type and structures with function-typed fields. 2009-09-15 06:28:26 +00:00
constant-fold-gep.ll Remove the folding rule 2010-01-28 18:08:26 +00:00
dg.exp sabre brings to my attention that the 'tr' suffix is also obsolete 2008-05-20 21:00:03 +00:00
invalid-commandline-option.ll Test this differently: I saw this test fail 2008-07-28 19:09:01 +00:00