2016-08-03 20:17:35 +02:00
|
|
|
; RUN: llc -verify-machineinstrs -O3 < %s | FileCheck %s
|
2015-08-05 09:45:28 +02:00
|
|
|
target datalayout = "E-m:e-i64:64-n32:64"
|
|
|
|
target triple = "powerpc64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
; Function Attrs: nounwind
|
|
|
|
define void @foo(double %eps) #0 {
|
|
|
|
entry:
|
|
|
|
%0 = fmul fast double %eps, %eps
|
|
|
|
%div = fmul fast double %0, 0x3FD5555555555555
|
|
|
|
tail call void @bar(double %div) #2
|
|
|
|
unreachable
|
|
|
|
|
|
|
|
; This used to crash because we'd call a function to compute instruction
|
|
|
|
; latency not supported with itineraries.
|
|
|
|
; CHECK-LABEL: @foo
|
|
|
|
; CHECK: bar
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @bar(double) #1
|
|
|
|
|
2020-07-27 22:48:44 +02:00
|
|
|
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" }
|
|
|
|
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" }
|
2015-08-05 09:45:28 +02:00
|
|
|
attributes #2 = { nounwind }
|
|
|
|
|