Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -O3 < %s | FileCheck %s
      2 target datalayout = "E-m:e-i64:64-n32:64"
      3 target triple = "powerpc64-unknown-linux-gnu"
      4 
      5 ; Function Attrs: nounwind
      6 define void @foo(double %eps) #0 {
      7 entry:
      8   %0 = fmul fast double %eps, %eps
      9   %div = fmul fast double %0, 0x3FD5555555555555
     10   tail call void @bar(double %div) #2
     11   unreachable
     12 
     13 ; This used to crash because we'd call a function to compute instruction
     14 ; latency not supported with itineraries.
     15 ; CHECK-LABEL: @foo
     16 ; CHECK: bar
     17 
     18 }
     19 
     20 declare void @bar(double) #1
     21 
     22 attributes #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 attributes #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 attributes #2 = { nounwind }
     25 
     26