1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-01-06 04:31:08 +00:00
llvm-6502/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
2002-02-24-InlineBrokePHINodes.ll
2002-03-11-ConstPropCrash.ll
2003-02-19-LoopInfoNestingBug.ll
2004-08-16-PackedConstantInlineStore.ll
2004-08-16-PackedGlobalConstant.ll
2004-08-16-PackedSelect.ll
2004-08-16-PackedSimple.ll
2004-08-20-PackedControlFlow.ll
2006-02-05-PassManager.ll
2007-04-24-eliminate-mostly-empty-blocks.ll
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
2008-02-14-PassManager.ll Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
2008-03-19-PassManager.ll
2008-06-04-FieldSizeInPacked.ll
2008-08-14-PassManager.ll Delete useless trailing semicolons. 2010-01-05 17:55:26 +00:00
2008-10-06-RemoveDeadPass.ll
2008-10-15-MissingSpace.ll
2009-03-31-CallGraph.ll
2009-06-05-no-implicit-float.ll fix bogus test 2010-01-09 19:24:49 +00:00
2009-09-14-function-elements.ll
constant-fold-gep.ll Remove the folding rule 2010-01-28 18:08:26 +00:00
dg.exp
invalid-commandline-option.ll