repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine][NFC] Precommit a test for folding a binary op of reductions. (#121568)
[llvm-project.git]
/
llvm
/
test
/
CodeGen
/
Hexagon
/
mind.ll
blob
5652baa1fac64e5399e59aef4ccd62b65b5b9e81
1
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
2
; CHECK: min
3
4
define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
5
entry:
6
%cmp = icmp sgt i64 %maxval, %src
7
%cond = select i1 %cmp, i64 %src, i64 %maxval
8
ret i64 %cond
9
}