summaryrefslogtreecommitdiff
path: root/test/Transforms/ConstProp/float-to-ptr-cast.ll
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@FreeBSD.org>2009-11-04 14:58:56 +0000
committerRoman Divacky <rdivacky@FreeBSD.org>2009-11-04 14:58:56 +0000
commit36bf506ad3c99a309ca8bd73bd03563d8d068ac0 (patch)
treeb4dc751bcee540346911aa4115729eff2f991657 /test/Transforms/ConstProp/float-to-ptr-cast.ll
parentf9666f9b3a3d26810deae8cd54feb6e47ecee61a (diff)
Diffstat (limited to 'test/Transforms/ConstProp/float-to-ptr-cast.ll')
-rw-r--r--test/Transforms/ConstProp/float-to-ptr-cast.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/Transforms/ConstProp/float-to-ptr-cast.ll b/test/Transforms/ConstProp/float-to-ptr-cast.ll
index d8eb3e8b652c..937f606bf136 100644
--- a/test/Transforms/ConstProp/float-to-ptr-cast.ll
+++ b/test/Transforms/ConstProp/float-to-ptr-cast.ll
@@ -1,12 +1,15 @@
-; RUN: opt < %s -constprop -S | \
-; RUN: grep -F {ret i32* null} | count 2
+; RUN: opt < %s -constprop -S | FileCheck %s
define i32* @test1() {
%X = inttoptr i64 0 to i32* ; <i32*> [#uses=1]
ret i32* %X
}
+; CHECK: ret i32* null
+
define i32* @test2() {
ret i32* null
}
+; CHECK: ret i32* null
+