Fix a FIXME about the format and add a test.
[oota-llvm.git] / test / Transforms / ConstProp / bitcast.ll
index 39cd53487f77c0ad2a7f9434b0d8ccb7e4b43589..53239c7e4fe08e80bc9a2f360a1fd807a24b2372 100644 (file)
@@ -1,4 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis &&
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 0x36A0000000000000
+; 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: @test1
+; CHECK: ret <1 x i64> <i64 63>
+}
 
-%A = global float bitcast (int 1 to float)