[llvm] r307621 - [InstCombine] Add test case for PR33721.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 10 22:12:52 PDT 2017
Author: ctopper
Date: Mon Jul 10 22:12:52 2017
New Revision: 307621
URL: http://llvm.org/viewvc/llvm-project?rev=307621&view=rev
Log:
[InstCombine] Add test case for PR33721.
Modified:
llvm/trunk/test/Transforms/InstCombine/select.ll
Modified: llvm/trunk/test/Transforms/InstCombine/select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/select.ll?rev=307621&r1=307620&r2=307621&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/select.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/select.ll Mon Jul 10 22:12:52 2017
@@ -1370,3 +1370,10 @@ define i8 @assume_cond_false(i1 %cond, i
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
+}
More information about the llvm-commits
mailing list