xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/Windows/long-calls.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -relocation-model pic -mattr=+long-calls -o - %s \
2*9880d681SAndroid Build Coastguard Worker; RUN:    | FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Workerdeclare arm_aapcs_vfpcc void @callee()
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Workerdefine arm_aapcs_vfpcc void @caller() nounwind {
7*9880d681SAndroid Build Coastguard Workerentry:
8*9880d681SAndroid Build Coastguard Worker  tail call void @callee()
9*9880d681SAndroid Build Coastguard Worker  ret void
10*9880d681SAndroid Build Coastguard Worker}
11*9880d681SAndroid Build Coastguard Worker
12*9880d681SAndroid Build Coastguard Worker; CHECK-LABEL: caller
13*9880d681SAndroid Build Coastguard Worker; CHECK: ldr [[REG:r[0-9]+]], [[CPI:LCPI[_0-9]+]]
14*9880d681SAndroid Build Coastguard Worker; CHECK: bx [[REG]]
15*9880d681SAndroid Build Coastguard Worker; CHECK: .p2align 2
16*9880d681SAndroid Build Coastguard Worker; CHECK: [[CPI]]:
17*9880d681SAndroid Build Coastguard Worker; CHECK: .long callee
18*9880d681SAndroid Build Coastguard Worker
19