[llvm-commits] [llvm] r81824 - in /llvm/trunk/test/CodeGen/X86: cmov.ll select-i8.ll

Chris Lattner sabre at nondot.org
Mon Sep 14 19:27:23 PDT 2009


Author: lattner
Date: Mon Sep 14 21:27:23 2009
New Revision: 81824

URL: http://llvm.org/viewvc/llvm-project?rev=81824&view=rev
Log:
merge one more in.

Removed:
    llvm/trunk/test/CodeGen/X86/select-i8.ll
Modified:
    llvm/trunk/test/CodeGen/X86/cmov.ll

Modified: llvm/trunk/test/CodeGen/X86/cmov.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/cmov.ll?rev=81824&r1=81823&r2=81824&view=diff

==============================================================================
--- llvm/trunk/test/CodeGen/X86/cmov.ll (original)
+++ llvm/trunk/test/CodeGen/X86/cmov.ll Mon Sep 14 21:27:23 2009
@@ -141,3 +141,13 @@
 }
 
 
+; Don't try to use a 16-bit conditional move to do an 8-bit select,
+; because it isn't worth it. Just use a branch instead.
+define i8 @test7(i1 inreg %c, i8 inreg %a, i8 inreg %b) nounwind {
+; CHECK: test7:
+; CHECK:     testb	$1, %dil
+; CHECK-NEXT:     jne	LBB
+
+  %d = select i1 %c, i8 %a, i8 %b
+  ret i8 %d
+}

Removed: llvm/trunk/test/CodeGen/X86/select-i8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/select-i8.ll?rev=81823&view=auto

==============================================================================
--- llvm/trunk/test/CodeGen/X86/select-i8.ll (original)
+++ llvm/trunk/test/CodeGen/X86/select-i8.ll (removed)
@@ -1,12 +0,0 @@
-; RUN: llc < %s -march=x86 > %t
-; RUN: not grep movz %t
-; RUN: not grep cmov %t
-; RUN: grep movb %t | count 2
-
-; Don't try to use a 16-bit conditional move to do an 8-bit select,
-; because it isn't worth it. Just use a branch instead.
-
-define i8 @foo(i1 inreg %c, i8 inreg %a, i8 inreg %b) {
-  %d = select i1 %c, i8 %a, i8 %b
-  ret i8 %d
-}





More information about the llvm-commits mailing list