Xamarin Public Jenkins (auto-signing) f32dbaf0b2 Imported Upstream version 5.18.0.225
Former-commit-id: 10196d987d5fc5564b9d3b33b1fdf13190f4d0b5
2018-12-21 19:01:49 +00:00

10 lines
227 B
LLVM

; RUN: llc -march=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
}