summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-11-19 14:39:57 +0000
committerSanjay Patel <spatel@rotateright.com>2018-11-19 14:39:57 +0000
commit7a51bdcf3b60817f09d94258f97ce266cda403ee (patch)
tree8ab96f0a65b234813e1c69d62a638dc56805cb05 /llvm/test/CodeGen
parentc036d844be3aaf95a1479ccfd07607777ec86522 (diff)
downloadbcm5719-llvm-7a51bdcf3b60817f09d94258f97ce266cda403ee.tar.gz
bcm5719-llvm-7a51bdcf3b60817f09d94258f97ce266cda403ee.zip
[x86] add test for select FP with undef condition; NFC
llvm-svn: 347211
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/select_const.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/select_const.ll b/llvm/test/CodeGen/X86/select_const.ll
index 68c83391e60..53230e8835e 100644
--- a/llvm/test/CodeGen/X86/select_const.ll
+++ b/llvm/test/CodeGen/X86/select_const.ll
@@ -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
+}
+
OpenPOWER on IntegriCloud