]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/PowerPC/ppc64le-calls.ll
Vendor import of llvm RELEASE_350/final tag r216957 (effectively, 3.5.0 release):
[FreeBSD/FreeBSD.git] / test / CodeGen / PowerPC / ppc64le-calls.ll
1 ; RUN: llc -march=ppc64le -mcpu=pwr8 < %s | FileCheck %s
2
3 target datalayout = "e-m:e-i64:64-n32:64"
4 target triple = "powerpc64le-unknown-linux-gnu"
5
6 ; Indirect calls requires a full stub creation
7 define 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