summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-07-11 05:12:52 +0000
committerCraig Topper <craig.topper@intel.com>2017-07-11 05:12:52 +0000
commita36eae0b2be9fe3b8f06f36e22975fa757364fca (patch)
treeab64df420acaeb6a590cfa5296705faf9b06a0c8 /llvm/test
parent84dd12d99e4d9623670e45904e01e9f976376612 (diff)
downloadbcm5719-llvm-a36eae0b2be9fe3b8f06f36e22975fa757364fca.tar.gz
bcm5719-llvm-a36eae0b2be9fe3b8f06f36e22975fa757364fca.zip
[InstCombine] Add test case for PR33721.
llvm-svn: 307621
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/Transforms/InstCombine/select.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstCombine/select.ll b/llvm/test/Transforms/InstCombine/select.ll
index c8f2a50b72e..acfa053daaf 100644
--- a/llvm/test/Transforms/InstCombine/select.ll
+++ b/llvm/test/Transforms/InstCombine/select.ll
@@ -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
+}
OpenPOWER on IntegriCloud