[llvm] r347211 - [x86] add test for select FP with undef condition; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 19 06:39:57 PST 2018
Author: spatel
Date: Mon Nov 19 06:39:57 2018
New Revision: 347211
URL: http://llvm.org/viewvc/llvm-project?rev=347211&view=rev
Log:
[x86] add test for select FP with undef condition; NFC
Modified:
llvm/trunk/test/CodeGen/X86/select_const.ll
Modified: llvm/trunk/test/CodeGen/X86/select_const.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/select_const.ll?rev=347211&r1=347210&r2=347211&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/select_const.ll (original)
+++ llvm/trunk/test/CodeGen/X86/select_const.ll Mon Nov 19 06:39:57 2018
@@ -503,3 +503,11 @@ define i64 @opaque_constant(i1 %cond, i6
ret i64 %add
}
+define float @select_undef_fp(float %x) {
+; CHECK-LABEL: select_undef_fp:
+; CHECK: # %bb.0:
+; CHECK-NEXT: retq
+ %f = select i1 undef, float 4.0, float %x
+ ret float %f
+}
+
More information about the llvm-commits
mailing list