]> granicus.if.org Git - llvm/commitdiff
[InstCombine] Add test case for PR33721.
authorCraig Topper <craig.topper@intel.com>
Tue, 11 Jul 2017 05:12:52 +0000 (05:12 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 11 Jul 2017 05:12:52 +0000 (05:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307621 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/select.ll

index c8f2a50b72eda796d261c6b8f0cc7ec0c2af4860..acfa053daaf8d722c7e306765fe8b85c0bca543e 100644 (file)
@@ -1370,3 +1370,10 @@ define i8 @assume_cond_false(i1 %cond, i8 %x, i8 %y) {
   ret i8 %sel
 }
 
+; Test case to make sure we don't consider an all ones float values for converting the select into a sext.
+define <4 x float> @PR33721(<4 x float> %w) {
+entry:
+  %0 = fcmp ole <4 x float> %w, zeroinitializer
+  %1 = select <4 x i1> %0, <4 x float> <float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000, float 0xFFFFFFFFE0000000>, <4 x float> zeroinitializer
+  ret <4 x float> %1
+}