Don't make assumptions about the name of private global variables.
[oota-llvm.git] / test / Transforms / ConstProp / bitcast.ll
index bf943c971f3ae0e546d01f579ab3b6dc0a6b723c..5e1581d801c7cb951e222f314079b18a5ab6442c 100644 (file)
@@ -1,2 +1,10 @@
-; RUN: llvm-as < %s | llvm-dis | grep 0x36A0000000000000
-@A = global float 0x36A0000000000000            ; <float*> [#uses=0]
+; RUN: opt < %s -constprop -S | FileCheck %s
+; PR2165
+
+define <1 x i64> @test1() {
+  %A = bitcast i64 63 to <1 x i64>
+  ret <1 x i64> %A
+; CHECK-LABEL: @test1(
+; CHECK: ret <1 x i64> <i64 63>
+}
+