1; RUN: llc -march=ppc64le -mcpu=pwr8 < %s | FileCheck %s
2
3target datalayout = "e-m:e-i64:64-n32:64"
4target triple = "powerpc64le-unknown-linux-gnu"
5
6; Indirect calls requires a full stub creation
7define void @test_indirect(void ()* nocapture %fp) {
8; CHECK-LABEL: @test_indirect
9  tail call void %fp()
10; CHECK-DAG: std 2, 24(1)
11; CHECK-DAG: mr 12, 3
12; CHECK-DAG: mtctr 3
13; CHECK: bctrl
14; CHECK-NEXT: ld 2, 24(1)
15  ret void
16}
17
18