aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/DeadStoreElimination
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
commit31d244ead52171632cc4649623b426dbea27040a (patch)
tree6c74281dac484b04c931ddd355f895457781c4f9 /test/Transforms/DeadStoreElimination
parent81bd78b89779704aeb762f51c6c19b06d542b6d6 (diff)
downloadexternal_llvm-31d244ead52171632cc4649623b426dbea27040a.zip
external_llvm-31d244ead52171632cc4649623b426dbea27040a.tar.gz
external_llvm-31d244ead52171632cc4649623b426dbea27040a.tar.bz2
* 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/DeadStoreElimination')
-rw-r--r--test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll b/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
index e268dd5..079eec4 100644
--- a/test/Transforms/DeadStoreElimination/2011-03-25-DSEMiscompile.ll
+++ b/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]