blob: 9621d41f3485d4515c975bda4f9832a26e49f01b [file] [log] [blame]
; RUN: llc -mtriple=hexagon < %s | FileCheck %s
; CHECK: minu
define i32 @f(i32 %src, i32 %maxval) nounwind readnone {
entry:
%cmp = icmp ugt i32 %maxval, %src
%cond = select i1 %cmp, i32 %src, i32 %maxval
ret i32 %cond
}