summaryrefslogtreecommitdiff
path: root/test/Transforms/SCCP
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-11-08 20:34:25 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-11-08 20:34:25 +0000
commit562b1d883f304e52b237e0af2ff7e4a9e02100cd (patch)
treecf37e1853faa14e23b4dd42c6538c02c10f6f234 /test/Transforms/SCCP
parent6b370e615ca5b3ef17ed4fe4fa891fab1e2bdd9a (diff)
downloadllvm-562b1d883f304e52b237e0af2ff7e4a9e02100cd.tar.gz
llvm-562b1d883f304e52b237e0af2ff7e4a9e02100cd.tar.bz2
llvm-562b1d883f304e52b237e0af2ff7e4a9e02100cd.tar.xz
llvm/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SCCP')
-rw-r--r--test/Transforms/SCCP/loadtest.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/Transforms/SCCP/loadtest.ll b/test/Transforms/SCCP/loadtest.ll
index add2af483f..dd1dba6914 100644
--- a/test/Transforms/SCCP/loadtest.ll
+++ b/test/Transforms/SCCP/loadtest.ll
@@ -1,8 +1,9 @@
; This test makes sure that these instructions are properly constant propagated.
-target datalayout = "e-p:32:32"
+; RUN: opt < %s -default-data-layout="e-p:32:32" -sccp -S | FileCheck %s
+; RUN: opt < %s -default-data-layout="E-p:32:32" -sccp -S | FileCheck %s
-; RUN: opt < %s -sccp -S | not grep load
+; CHECK-NOT: load
@X = constant i32 42 ; <i32*> [#uses=1]