1 ; RUN: llc < %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 @bar() local_unnamed_addr #0 {
8 tail call void @foo() #1
12 ; CHECK: ld [[FD:[0-9]+]], .LC0@toc@l({{[0-9]+}})
13 ; CHECK: ld [[ADDR:[0-9]+]], 0([[FD]])
14 ; CHECK: mtctr [[ADDR]]
22 declare void @foo() local_unnamed_addr
24 attributes #0 = { nounwind "target-cpu"="ppc64" "target-features"="+longcall" }
25 attributes #1 = { nounwind }