aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/bitcast.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/bitcast.ll')
-rw-r--r--test/Transforms/ConstProp/bitcast.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/bitcast.ll b/test/Transforms/ConstProp/bitcast.ll
new file mode 100644
index 0000000..53239c7
--- /dev/null
+++ b/test/Transforms/ConstProp/bitcast.ll
@@ -0,0 +1,10 @@
+; 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>
+}
+