aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-11-12 02:02:39 +0000
committerDan Gohman <gohman@apple.com>2010-11-12 02:02:39 +0000
commit02df7e90cf09e2a1e75fe7a441f0c34d1e76b85c (patch)
treec623ffdd70e1f33a7cdba81d21982ecc47678411 /test/Transforms
parent0e03456a6592dd8c628a17a37d2b95467f053037 (diff)
downloadexternal_llvm-02df7e90cf09e2a1e75fe7a441f0c34d1e76b85c.zip
external_llvm-02df7e90cf09e2a1e75fe7a441f0c34d1e76b85c.tar.gz
external_llvm-02df7e90cf09e2a1e75fe7a441f0c34d1e76b85c.tar.bz2
Filecheckize.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/DeadStoreElimination/free.ll13
1 files changed, 12 insertions, 1 deletions
diff --git a/test/Transforms/DeadStoreElimination/free.ll b/test/Transforms/DeadStoreElimination/free.ll
index ec2a4ff..0b44a4c 100644
--- a/test/Transforms/DeadStoreElimination/free.ll
+++ b/test/Transforms/DeadStoreElimination/free.ll
@@ -1,5 +1,11 @@
-; RUN: opt < %s -basicaa -dse -S | not grep DEAD
+; RUN: opt < %s -basicaa -dse -S | FileCheck %s
+target datalayout = "e-p:64:64:64"
+
+; CHECK: @test
+; CHECK-NEXT: bitcast
+; CHECK-NEXT: @free
+; CHECK-NEXT: ret void
define void @test(i32* %Q, i32* %P) {
%DEAD = load i32* %Q ; <i32> [#uses=1]
store i32 %DEAD, i32* %P
@@ -7,9 +13,14 @@ define void @test(i32* %Q, i32* %P) {
ret void
}
+; CHECK: @test2
+; CHECK-NEXT: bitcast
+; CHECK-NEXT: @free
+; CHECK-NEXT: ret void
define void @test2({i32, i32}* %P) {
%Q = getelementptr {i32, i32} *%P, i32 0, i32 1
store i32 4, i32* %Q
free {i32,i32}* %P
ret void
}
+