diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-21 07:32:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-21 07:32:40 +0000 |
commit | b7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb (patch) | |
tree | 71fe82f92f7e0e4e7b3012d552a3b529112fd74b | |
parent | 3e41106de4e08bbbaff6a0ae63bdac47d2eaac1b (diff) | |
download | external_llvm-b7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb.zip external_llvm-b7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb.tar.gz external_llvm-b7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb.tar.bz2 |
file checkize
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119926 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/DeadStoreElimination/simple.ll | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/Transforms/DeadStoreElimination/simple.ll b/test/Transforms/DeadStoreElimination/simple.ll index d3f5c61..f0c140d 100644 --- a/test/Transforms/DeadStoreElimination/simple.ll +++ b/test/Transforms/DeadStoreElimination/simple.ll @@ -1,10 +1,13 @@ -; RUN: opt < %s -basicaa -dse -S | not grep DEAD +; RUN: opt < %s -basicaa -dse -S | FileCheck %s target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128" -define void @test(i32* %Q, i32* %P) { - %DEAD = load i32* %Q ; <i32> [#uses=1] +define void @test1(i32* %Q, i32* %P) { + %DEAD = load i32* %Q store i32 %DEAD, i32* %P store i32 0, i32* %P ret void +; CHECK: @test1 +; CHECK-NEXT: store i32 0, i32* %P +; CHECK-NEXT: ret void } |