From b7dfb970e60d0e559f9e27e3914a4cbb8e7be5eb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 21 Nov 2010 07:32:40 +0000 Subject: file checkize git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119926 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Transforms/DeadStoreElimination/simple.ll | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/Transforms/DeadStoreElimination') 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 ; [#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 } -- cgit v1.1