[NFC][Py Reformat] Reformat python files in llvm
[llvm-project.git] / llvm / test / CodeGen / PowerPC / mc-instrlat.ll
blobf807f4fa20d25cf932634df6d088b97e44fe0060
1 ; RUN: llc -verify-machineinstrs -O3 < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
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
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
20 declare void @bar(double) #1
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,-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,-vsx" "unsafe-fp-math"="true" "use-soft-float"="false" }
24 attributes #2 = { nounwind }