summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-03-30 21:37:19 +0000
committerBill Wendling <isanbard@gmail.com>2011-03-30 21:37:19 +0000
commit5034159c5ff5da6b455f779b3b56e6cbf89a59d4 (patch)
treeaaa24f0cdfdc8e496ae9675602778b999bd9ae07 /llvm/test/Transforms
parentc640179166b973c6969d450ccb59b3c8bf5a5133 (diff)
downloadbcm5719-llvm-5034159c5ff5da6b455f779b3b56e6cbf89a59d4.tar.gz
bcm5719-llvm-5034159c5ff5da6b455f779b3b56e6cbf89a59d4.zip
* The DSE code that tested for overlapping needed to take into account the fact
that one of the numbers is signed while the other is unsigned. This could lead to a wrong result when the signed was promoted to an unsigned int. * Add the data layout line to the testcase so that it will test the appropriate thing. Patch by David Terei! llvm-svn: 128577
Diffstat (limited to 'llvm/test/Transforms')
-rw-r--r--llvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll b/llvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
index e268dd54140..079eec43bf8 100644
--- a/llvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
+++ b/llvm/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
@@ -1,5 +1,6 @@
; RUN: opt < %s -basicaa -dse -S | FileCheck %s
; PR9561
+target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32"
target triple = "i386-apple-darwin9.8"
@A = external global [0 x i32]
OpenPOWER on IntegriCloud