aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/ConstProp/2006-11-30-vector-cast.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2006-11-30-vector-cast.ll b/test/Transforms/ConstProp/2006-11-30-vector-cast.ll
new file mode 100644
index 0000000000..ae8d3ab98c
--- /dev/null
+++ b/test/Transforms/ConstProp/2006-11-30-vector-cast.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | opt -constprop | llvm-dis | grep 4294967295 &&
+; RUN: llvm-as < %s | opt -constprop | llvm-dis | not grep zeroinitializer
+
+< 4 x uint> %test() {
+ %tmp40 = bitcast <2 x long> bitcast (<4 x int> < int 0, int 0, int -1, int 0 > to <2 x long>) to <4 x uint>
+ ret <4 x uint> %tmp40
+}