26 lines · plain
1; RUN: llc -verify-machineinstrs -O3 < %s | FileCheck %s2target datalayout = "E-m:e-i64:64-n32:64"3target triple = "powerpc64-unknown-linux-gnu"4 5; Function Attrs: nounwind6define void @foo(double %eps) #0 {7entry:8 %0 = fmul fast double %eps, %eps9 %div = fmul fast double %0, 0x3FD555555555555510 tail call void @bar(double %div) #211 unreachable12 13; This used to crash because we'd call a function to compute instruction14; latency not supported with itineraries.15; CHECK-LABEL: @foo16; CHECK: bar17 18}19 20declare void @bar(double) #121 22attributes #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,-vsx" "use-soft-float"="false" }23attributes #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,-vsx" "use-soft-float"="false" }24attributes #2 = { nounwind }25 26