Add encoding for VSTR.
[oota-llvm.git] / test / Transforms / ConstProp / float-to-ptr-cast.ll
index 39e0fc7a52b078fa3d2bdfda9a2e6efdca8009d5..937f606bf1366870a4beecedef63cae9c677e9dc 100644 (file)
@@ -1,9 +1,15 @@
-; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2
-int* %test1() {
-  %X = cast float 0.0 to int*
-  ret int* %X
+; RUN: opt < %s -constprop -S | FileCheck %s
+
+define i32* @test1() {
+        %X = inttoptr i64 0 to i32*             ; <i32*> [#uses=1]
+        ret i32* %X
 }
 
-int* %test2() {
-  ret int* cast (float 0.0 to int*)
+; CHECK:  ret i32* null
+
+define i32* @test2() {
+        ret i32* null
 }
+
+; CHECK:  ret i32* null
+