mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-05 11:27:41 +00:00

be emitted. This is needed to enable ARM long calls for LTO and enable and disable it on a per-function basis. Out-of-tree projects currently using EnableARMLongCalls to emit long calls should start passing "+long-calls" to the feature string (see the changes made to clang in r241565). rdar://problem/21529937 Differential Revision: http://reviews.llvm.org/D9364 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241566 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
395 B
LLVM
19 lines
395 B
LLVM
; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -mattr=+long-calls -o - %s \
|
|
; RUN: | FileCheck %s
|
|
|
|
declare arm_aapcs_vfpcc void @callee()
|
|
|
|
define arm_aapcs_vfpcc void @caller() nounwind {
|
|
entry:
|
|
tail call void @callee()
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: caller
|
|
; CHECK: ldr [[REG:r[0-9]+]], [[CPI:LCPI[_0-9]+]]
|
|
; CHECK: bx [[REG]]
|
|
; CHECK: .align 2
|
|
; CHECK: [[CPI]]:
|
|
; CHECK: .long callee
|
|
|