From a8b9c93601112ceb846904a81e46fd52c98bff1c Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 17 Jan 2020 16:26:24 -0500 Subject: [PATCH] [InstSimplify] add test for select of vector constants; NFC --- llvm/test/Transforms/InstSimplify/select.ll | 9 +++++++++ 1 file changed, 9 insertions(+) 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> , <3 x float> +; CHECK-NEXT: ret <3 x float> [[V]] +; + %V = select <3 x i1> %cond, <3 x float> , <3 x float> + 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:%.*]] -- 2.34.1