1 ; RUN: llc -march=hexagon < %s
4 target triple = "hexagon"
6 %struct.0 = type { i64, i16 }
8 declare void @foo(ptr noalias nocapture sret(%struct.0), i8 zeroext, i32, i64) #0
10 define hidden fastcc void @fred(ptr noalias nocapture %p, i8 zeroext %t, i32 %r) unnamed_addr #0 {
12 %. = select i1 undef, i64 549755813888, i64 1024
13 %cmp104 = icmp ult i64 undef, %.
14 %inc = zext i1 %cmp104 to i32
15 %inc.r = add nsw i32 %inc, %r
16 %.inc.r = select i1 undef, i32 0, i32 %inc.r
17 tail call void @foo(ptr sret(%struct.0) %p, i8 zeroext %t, i32 %.inc.r, i64 undef)
21 attributes #0 = { noinline nounwind }