mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-30 07:00:45 +00:00
36a0947820
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81290 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
340 B
LLVM
13 lines
340 B
LLVM
; 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
|
|
}
|