aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/ConstProp/2008-07-07-VectorCompare.ll')
-rw-r--r--test/Transforms/ConstProp/2008-07-07-VectorCompare.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll b/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
new file mode 100644
index 0000000..d50ed90
--- /dev/null
+++ b/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | opt -constprop | llvm-dis
+; PR2529
+define <4 x i32> @test1(i32 %argc, i8** %argv) {
+entry:
+ %foo = vicmp slt <4 x i32> undef, <i32 14, i32 undef, i32 undef, i32 undef>
+ ret <4 x i32> %foo
+}
+
+define <4 x i32> @main(i32 %argc, i8** %argv) {
+entry:
+ %foo = vicmp slt <4 x i32> <i32 undef, i32 undef, i32 undef, i32
+undef>, <i32 undef, i32 undef, i32 undef, i32 undef>
+ ret <4 x i32> %foo
+}