[llvm] 3ae38d9 - [InstSimplify] add test for select of FP constants; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 13:40:05 PST 2020
Author: Sanjay Patel
Date: 2020-01-17T16:39:55-05:00
New Revision: 3ae38d95e6c0b754a26c99bf930a46cac3adbf8b
URL: https://github.com/llvm/llvm-project/commit/3ae38d95e6c0b754a26c99bf930a46cac3adbf8b
DIFF: https://github.com/llvm/llvm-project/commit/3ae38d95e6c0b754a26c99bf930a46cac3adbf8b.diff
LOG: [InstSimplify] add test for select of FP constants; NFC
Added:
Modified:
llvm/test/Transforms/InstSimplify/select.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstSimplify/select.ll b/llvm/test/Transforms/InstSimplify/select.ll
index 433b4e495aaa..15f2a2e36c68 100644
--- a/llvm/test/Transforms/InstSimplify/select.ll
+++ b/llvm/test/Transforms/InstSimplify/select.ll
@@ -66,6 +66,15 @@ define <2 x i32> @equal_arms_vec_undef(<2 x i1> %cond) {
ret <2 x i32> %V
}
+define <3 x float> @equal_arms_vec_less_undef(<3 x i1> %cond) {
+; CHECK-LABEL: @equal_arms_vec_less_undef(
+; CHECK-NEXT: [[V:%.*]] = select <3 x i1> [[COND:%.*]], <3 x float> <float 4.200000e+01, float undef, float 4.300000e+01>, <3 x float> <float 4.200000e+01, float 4.200000e+01, float 4.300000e+01>
+; CHECK-NEXT: ret <3 x float> [[V]]
+;
+ %V = select <3 x i1> %cond, <3 x float> <float 42.0, float undef, float 43.0>, <3 x float> <float 42.0, float 42.0, float 43.0>
+ ret <3 x float> %V
+}
+
define <2 x i8> @vsel_tvec(<2 x i8> %x, <2 x i8> %y) {
; CHECK-LABEL: @vsel_tvec(
; CHECK-NEXT: ret <2 x i8> [[X:%.*]]
More information about the llvm-commits
mailing list