aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-01 03:47:56 +0000
committerChris Lattner <sabre@nondot.org>2004-04-01 03:47:56 +0000
commit140385e0aceb92a9e588721e11fd60c15724aae4 (patch)
tree1e36a95d886e2c02440beea8c81a7cefadc436e5 /test/CodeGen
parent2974b5b9bb8594e25454b6890681273bbf9bdd09 (diff)
downloadexternal_llvm-140385e0aceb92a9e588721e11fd60c15724aae4.zip
external_llvm-140385e0aceb92a9e588721e11fd60c15724aae4.tar.gz
external_llvm-140385e0aceb92a9e588721e11fd60c15724aae4.tar.bz2
Tests for fp cmov's that I forgot to check in earlier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12585 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/select.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/select.ll b/test/CodeGen/X86/select.ll
index 1be5261..c708f5e 100644
--- 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
+}
+