aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/bitcast2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/bitcast2.ll')
-rw-r--r--test/Transforms/ConstProp/bitcast2.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/bitcast2.ll b/test/Transforms/ConstProp/bitcast2.ll
new file mode 100644
index 0000000..66def7f
--- /dev/null
+++ b/test/Transforms/ConstProp/bitcast2.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep bitcast
+; PR2165
+
+define <1 x i64> @test() {
+ %A = bitcast i64 63 to <1 x i64>
+ ret <1 x i64> %A
+}
+