aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-07-10 00:08:17 +0000
committerChris Lattner <sabre@nondot.org>2008-07-10 00:08:17 +0000
commit330e7e4d250653243afaaeef4c01a7c12c314b39 (patch)
treea756126b84b6d23fc834c2e4bacdbab0b1fe24d2 /test
parent250c1d8734ae29b8e408e16dc575b21a31fcb0d7 (diff)
downloadexternal_llvm-330e7e4d250653243afaaeef4c01a7c12c314b39.zip
external_llvm-330e7e4d250653243afaaeef4c01a7c12c314b39.tar.gz
external_llvm-330e7e4d250653243afaaeef4c01a7c12c314b39.tar.bz2
elementwise comparison of vector constants was completely wrong. Fix
it for PR2529 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/ConstProp/2008-07-07-VectorCompare.ll10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll b/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
index 35f034a..b42b024 100644
--- a/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
+++ b/test/Transforms/ConstProp/2008-07-07-VectorCompare.ll
@@ -6,9 +6,17 @@ entry:
ret <4 x i32> %foo
}
-define <4 x i32> @main(i32 %argc, i8** %argv) {
+define <4 x i32> @test2(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
}
+
+
+define <4 x i32> @test3() {
+ %foo = vfcmp ueq <4 x float> <float 0.0, float 0.0, float 0.0, float
+undef>, <float 1.0, float 1.0, float 1.0, float undef>
+ ret <4 x i32> %foo
+}
+