blob: a7fb00e17bf55a1db3e80695370d1270a69640a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
; 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
}
|