1; RUN: llc -march=hexagon < %s | FileCheck %s
2; CHECK: maxu
3
4define i64 @f(i64 %src, i64 %maxval) nounwind readnone {
5entry:
6  %cmp = icmp ult i64 %maxval, %src
7  %cond = select i1 %cmp, i64 %src, i64 %maxval
8  ret i64 %cond
9}
10