[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Mar 31 21:49:01 PST 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
select.ll updated: 1.2 -> 1.3
---
Log message:
Tests for fp cmov's that I forgot to check in earlier
---
Diffs of the changes: (+13 -0)
Index: llvm/test/Regression/CodeGen/X86/select.ll
diff -u llvm/test/Regression/CodeGen/X86/select.ll:1.2 llvm/test/Regression/CodeGen/X86/select.ll:1.3
--- llvm/test/Regression/CodeGen/X86/select.ll:1.2 Tue Mar 30 16:37:04 2004
+++ llvm/test/Regression/CodeGen/X86/select.ll Wed Mar 31 21:47:56 2004
@@ -48,3 +48,16 @@
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
+}
+
More information about the llvm-commits
mailing list