1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O3 < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Workertarget datalayout = "E-m:e-i64:64-n32:64" 3*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64-unknown-linux-gnu" 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; Function Attrs: nounwind 6*9880d681SAndroid Build Coastguard Workerdefine void @foo(double %eps) #0 { 7*9880d681SAndroid Build Coastguard Workerentry: 8*9880d681SAndroid Build Coastguard Worker %0 = fmul fast double %eps, %eps 9*9880d681SAndroid Build Coastguard Worker %div = fmul fast double %0, 0x3FD5555555555555 10*9880d681SAndroid Build Coastguard Worker tail call void @bar(double %div) #2 11*9880d681SAndroid Build Coastguard Worker unreachable 12*9880d681SAndroid Build Coastguard Worker 13*9880d681SAndroid Build Coastguard Worker; This used to crash because we'd call a function to compute instruction 14*9880d681SAndroid Build Coastguard Worker; latency not supported with itineraries. 15*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @foo 16*9880d681SAndroid Build Coastguard Worker; CHECK: bar 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Worker} 19*9880d681SAndroid Build Coastguard Worker 20*9880d681SAndroid Build Coastguard Workerdeclare void @bar(double) #1 21*9880d681SAndroid Build Coastguard Worker 22*9880d681SAndroid Build Coastguard Workerattributes #0 = { nounwind "no-infs-fp-math"="true" "no-nans-fp-math"="true" "target-cpu"="ppc64" "target-features"="+altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-qpx,-vsx" "unsafe-fp-math"="true" "use-soft-float"="false" } 23*9880d681SAndroid Build Coastguard Workerattributes #1 = { "no-infs-fp-math"="true" "no-nans-fp-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="ppc64" "target-features"="+altivec,-bpermd,-crypto,-direct-move,-extdiv,-power8-vector,-qpx,-vsx" "unsafe-fp-math"="true" "use-soft-float"="false" } 24*9880d681SAndroid Build Coastguard Workerattributes #2 = { nounwind } 25*9880d681SAndroid Build Coastguard Worker 26