[llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/select.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 30 16:38:01 PST 2004
Changes in directory llvm/test/Regression/CodeGen/X86:
select.ll updated: 1.1 -> 1.2
---
Log message:
Test folding comparisons into select instructions
---
Diffs of the changes: (+18 -0)
Index: llvm/test/Regression/CodeGen/X86/select.ll
diff -u llvm/test/Regression/CodeGen/X86/select.ll:1.1 llvm/test/Regression/CodeGen/X86/select.ll:1.2
--- llvm/test/Regression/CodeGen/X86/select.ll:1.1 Tue Mar 30 15:21:14 2004
+++ llvm/test/Regression/CodeGen/X86/select.ll Tue Mar 30 16:37:04 2004
@@ -30,3 +30,21 @@
ret double %X
}
+sbyte %foldSel(bool %A, sbyte %B, sbyte %C) {
+ %Cond = setlt sbyte %B, %C
+ %X = select bool %Cond, sbyte %B, sbyte %C
+ ret sbyte %X
+}
+
+int %foldSel2(bool %A, int %B, int %C) {
+ %Cond = seteq int %B, %C
+ %X = select bool %Cond, int %B, int %C
+ ret int %X
+}
+
+int %foldSel2(bool %A, int %B, int %C, double %X, double %Y) {
+ %Cond = setlt double %X, %Y
+ %X = select bool %Cond, int %B, int %C
+ ret int %X
+}
+
More information about the llvm-commits
mailing list