[prev in list] [next in list] [prev in thread] [next in thread] 

List:       llvm-commits
Subject:    [llvm-commits] CVS: llvm/test/Regression/CodeGen/X86/select.ll
From:       Chris Lattner <lattner () cs ! uiuc ! edu>
Date:       2004-03-31 21:49:01
Message-ID: 200404010348.VAA19582 () zion ! cs ! uiuc ! edu
[Download RAW message or body]


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
+}
+



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic