repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation patterns
[llvm-complete.git]
/
test
/
CodeGen
/
Hexagon
/
minuw.ll
blob
a88d1e11603747655da45dec01ce0487e3159bd9
1
; RUN: llc -march=hexagon < %s | FileCheck %s
2
; CHECK: minu
3
4
define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
5
entry:
6
%cmp = icmp ugt i32 %maxval, %src
7
%cond = select i1 %cmp, i32 %src, i32 %maxval
8
ret i32 %cond
9
}