1 ; RUN: llc < %s | FileCheck %s
2 ; RUN: llc --fast-isel < %s | FileCheck %s
3 target datalayout = "E-m:e-i64:64-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
6 ; Function Attrs: nounwind
7 define void @tail() local_unnamed_addr #0 {
9 tail call void @foo() #1
13 ; CHECK: ld [[FD:[0-9]+]], .LC0@toc@l({{[0-9]+}})
14 ; CHECK: ld [[ADDR:[0-9]+]], 0([[FD]])
15 ; CHECK: mtctr [[ADDR]]
21 define void @notail() local_unnamed_addr #0 {
26 ; CHECK-LABEL: @notail
27 ; CHECK: ld [[FD:[0-9]+]], .LC0@toc@l({{[0-9]+}})
28 ; CHECK: ld [[ADDR:[0-9]+]], 0([[FD]])
29 ; CHECK: mtctr [[ADDR]]
37 declare void @foo() local_unnamed_addr
39 attributes #0 = { nounwind "target-cpu"="ppc64" "target-features"="+longcall" }
40 attributes #1 = { nounwind }