diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-08 20:34:25 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-11-08 20:34:25 +0000 |
commit | 43ab4ef9bae9a99a1e64c20eabcae7e850c2e6b3 (patch) | |
tree | ad2be3390213c9d1fb22ded0bfed8f1dba24a11b /llvm/test/Transforms/SCCP/loadtest.ll | |
parent | 7d574e269dbbebc7a7ab95de77c86475010c164a (diff) | |
download | bcm5719-llvm-43ab4ef9bae9a99a1e64c20eabcae7e850c2e6b3.tar.gz bcm5719-llvm-43ab4ef9bae9a99a1e64c20eabcae7e850c2e6b3.zip |
llvm/ConstantFolding.cpp: Make ReadDataFromGlobal() and FoldReinterpretLoadFromConstPtr() Big-endian-aware.
llvm-svn: 167595
Diffstat (limited to 'llvm/test/Transforms/SCCP/loadtest.ll')
-rw-r--r-- | llvm/test/Transforms/SCCP/loadtest.ll | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/test/Transforms/SCCP/loadtest.ll b/llvm/test/Transforms/SCCP/loadtest.ll index add2af483f5..dd1dba69143 100644 --- a/llvm/test/Transforms/SCCP/loadtest.ll +++ b/llvm/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] |