[x86] add test for select FP with undef condition; NFC
authorSanjay Patel <spatel@rotateright.com>
Mon, 19 Nov 2018 14:39:57 +0000 (14:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 19 Nov 2018 14:39:57 +0000 (14:39 +0000)
llvm-svn: 347211

llvm/test/CodeGen/X86/select_const.ll

index 68c8339..53230e8 100644 (file)
@@ -503,3 +503,11 @@ define i64 @opaque_constant(i1 %cond, i64 %x) {
   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
+}
+