1*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=ppc64le -mcpu=pwr8 < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker; RUN: llc -march=ppc64le < %s | FileCheck %s 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; The second run of the test case is to ensure the behaviour is the same 5*9880d681SAndroid Build Coastguard Worker; without specifying -mcpu=pwr8 as that is now the baseline for ppc64le. 6*9880d681SAndroid Build Coastguard Worker 7*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-m:e-i64:64-n32:64" 8*9880d681SAndroid Build Coastguard Workertarget triple = "powerpc64le-unknown-linux-gnu" 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Worker; Indirect calls requires a full stub creation 11*9880d681SAndroid Build Coastguard Workerdefine void @test_indirect(void ()* nocapture %fp) { 12*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: @test_indirect 13*9880d681SAndroid Build Coastguard Worker tail call void %fp() 14*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: std 2, 24(1) 15*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: mr 12, 3 16*9880d681SAndroid Build Coastguard Worker; CHECK-DAG: mtctr 3 17*9880d681SAndroid Build Coastguard Worker; CHECK: bctrl 18*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: ld 2, 24(1) 19*9880d681SAndroid Build Coastguard Worker ret void 20*9880d681SAndroid Build Coastguard Worker} 21*9880d681SAndroid Build Coastguard Worker 22