repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Shrink Thumb2 movcc instructions.
[llvm/avr.git]
/
test
/
CodeGen
/
X86
/
2004-03-30-Select-Max.ll
blob
5021fd89dfe4c801d12848bc301b2b5c643bb368
1
; RUN: llvm-as < %s | llc -march=x86 | not grep {j\[lgbe\]}
2
3
define i32 @max(i32 %A, i32 %B) {
4
%gt = icmp sgt i32 %A, %B ; <i1> [#uses=1]
5
%R = select i1 %gt, i32 %A, i32 %B ; <i32> [#uses=1]
6
ret i32 %R
7
}
8