projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2974b5b
)
Tests for fp cmov's that I forgot to check in earlier
author
Chris Lattner
<sabre@nondot.org>
Thu, 1 Apr 2004 03:47:56 +0000
(
03:47
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 1 Apr 2004 03:47:56 +0000
(
03:47
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12585
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/select.ll
patch
|
blob
|
history
diff --git
a/test/CodeGen/X86/select.ll
b/test/CodeGen/X86/select.ll
index 1be5261eb6b0a5a3ecf4f9864225a6c51c3ed256..c708f5e07320ac2a6c291fc7ee5025336819c1ff 100644
(file)
--- a/
test/CodeGen/X86/select.ll
+++ b/
test/CodeGen/X86/select.ll
@@
-48,3
+48,16
@@
int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
ret int %X
}
+float %foldSel3(bool %A, float %B, float %C, uint %X, uint %Y) {
+ %Cond = setlt uint %X, %Y
+ %X = select bool %Cond, float %B, float %C
+ ret float %X
+}
+
+float %nofoldSel4(bool %A, float %B, float %C, int %X, int %Y) {
+ ; X86 doesn't have a cmov that reads the right flags for this!
+ %Cond = setlt int %X, %Y
+ %X = select bool %Cond, float %B, float %C
+ ret float %X
+}
+