1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=hexagon < %s 2*9880d681SAndroid Build Coastguard Worker; REQUIRES: asserts 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Workertarget triple = "hexagon" 5*9880d681SAndroid Build Coastguard Worker 6*9880d681SAndroid Build Coastguard Worker%struct.0 = type { i64, i16 } 7*9880d681SAndroid Build Coastguard Worker 8*9880d681SAndroid Build Coastguard Workerdeclare void @foo(%struct.0* noalias nocapture sret, i8 zeroext, i32, i64) #0 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine hidden fastcc void @fred(%struct.0* noalias nocapture %p, i8 zeroext %t, i32 %r) unnamed_addr #0 { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %. = select i1 undef, i64 549755813888, i64 1024 13*9880d681SAndroid Build Coastguard Worker %cmp104 = icmp ult i64 undef, %. 14*9880d681SAndroid Build Coastguard Worker %inc = zext i1 %cmp104 to i32 15*9880d681SAndroid Build Coastguard Worker %inc.r = add nsw i32 %inc, %r 16*9880d681SAndroid Build Coastguard Worker %.inc.r = select i1 undef, i32 0, i32 %inc.r 17*9880d681SAndroid Build Coastguard Worker tail call void @foo(%struct.0* sret %p, i8 zeroext %t, i32 %.inc.r, i64 undef) 18*9880d681SAndroid Build Coastguard Worker ret void 19*9880d681SAndroid Build Coastguard Worker} 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerattributes #0 = { noinline nounwind } 22*9880d681SAndroid Build Coastguard Worker 23