merge one more in.
authorChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 02:27:23 +0000 (02:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Sep 2009 02:27:23 +0000 (02:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81824 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/cmov.ll
test/CodeGen/X86/select-i8.ll [deleted file]

index 1e6efc205d2db564199b25e34840ae97a9c6a2c5..f53966c905ad95e4007560070e77d1c57bf819c8 100644 (file)
@@ -141,3 +141,13 @@ entry:
 }
 
 
+; 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
+}
diff --git a/test/CodeGen/X86/select-i8.ll b/test/CodeGen/X86/select-i8.ll
deleted file mode 100644 (file)
index a7fb00e..0000000
+++ /dev/null
@@ -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
-}