projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[X86] Add RIP to GR64_TCW64
[oota-llvm.git]
/
test
/
CodeGen
/
Hexagon
/
maxw.ll
1
; RUN: llc -march=hexagon < %s | FileCheck %s
2
; CHECK: max
3
4
define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
5
entry:
6
%cmp = icmp slt i32 %maxval, %src
7
%cond = select i1 %cmp, i32 %src, i32 %maxval
8
ret i32 %cond
9
}