[llvm] a8b9c93 - [InstSimplify] add test for select of vector constants; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 13:40:10 PST 2020
Author: Sanjay Patel
Date: 2020-01-17T16:39:55-05:00
New Revision: a8b9c93601112ceb846904a81e46fd52c98bff1c
URL: https://github.com/llvm/llvm-project/commit/a8b9c93601112ceb846904a81e46fd52c98bff1c
DIFF: https://github.com/llvm/llvm-project/commit/a8b9c93601112ceb846904a81e46fd52c98bff1c.diff
LOG: [InstSimplify] add test for select of vector 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 15f2a2e36c68..47a57f80a863 100644
--- a/llvm/test/Transforms/InstSimplify/select.ll
+++ b/llvm/test/Transforms/InstSimplify/select.ll
@@ -75,6 +75,15 @@ define <3 x float> @equal_arms_vec_less_undef(<3 x i1> %cond) {
ret <3 x float> %V
}
+define <3 x float> @equal_arms_vec_more_undef(<3 x i1> %cond) {
+; CHECK-LABEL: @equal_arms_vec_more_undef(
+; CHECK-NEXT: [[V:%.*]] = select <3 x i1> [[COND:%.*]], <3 x float> <float 4.200000e+01, float undef, float undef>, <3 x float> <float undef, float undef, 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 undef>, <3 x float> <float undef, float undef, 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