22 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=pwr8 < %s | FileCheck %s2; RUN: llc -verify-machineinstrs < %s | FileCheck %s3 4; The second run of the test case is to ensure the behaviour is the same5; without specifying -mcpu=pwr8 as that is now the baseline for ppc64le.6 7target datalayout = "e-m:e-i64:64-n32:64"8target triple = "powerpc64le-unknown-linux-gnu"9 10; Indirect calls requires a full stub creation11define void @test_indirect(ptr nocapture %fp) {12; CHECK-LABEL: @test_indirect13 tail call void %fp()14; CHECK-DAG: std 2, 24(1)15; CHECK-DAG: mr 12, 316; CHECK-DAG: mtctr 317; CHECK: bctrl18; CHECK-NEXT: ld 2, 24(1)19 ret void20}21 22