aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/cmov.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-15 02:27:23 +0000
committerChris Lattner <sabre@nondot.org>2009-09-15 02:27:23 +0000
commit3d76d11866e056b861c93341cb77a6477406c7fb (patch)
treef0f232d876fc0ce279887b1f56cb71d45ea9994f /test/CodeGen/X86/cmov.ll
parent9f052ab1613f82c515c796d98cf906b25d93f4dc (diff)
downloadexternal_llvm-3d76d11866e056b861c93341cb77a6477406c7fb.zip
external_llvm-3d76d11866e056b861c93341cb77a6477406c7fb.tar.gz
external_llvm-3d76d11866e056b861c93341cb77a6477406c7fb.tar.bz2
merge one more in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81824 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/cmov.ll')
-rw-r--r--test/CodeGen/X86/cmov.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/cmov.ll b/test/CodeGen/X86/cmov.ll
index 1e6efc2..f53966c 100644
--- a/test/CodeGen/X86/cmov.ll
+++ b/test/CodeGen/X86/cmov.ll
@@ -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
+}