projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c036d84
)
[x86] add test for select FP with undef condition; NFC
author
Sanjay Patel
<spatel@rotateright.com>
Mon, 19 Nov 2018 14:39:57 +0000
(14:39 +0000)
committer
Sanjay 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
patch
|
blob
|
history
diff --git
a/llvm/test/CodeGen/X86/select_const.ll
b/llvm/test/CodeGen/X86/select_const.ll
index
68c8339
..
53230e8
100644
(file)
--- 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
+}
+