2016-07-06 02:30:52 +08:00
|
|
|
; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -relocation-model pic -mattr=+long-calls -o - %s \
|
2014-06-08 04:29:27 +08:00
|
|
|
; 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
|
2016-10-13 08:55:24 +08:00
|
|
|
; CHECK: ldr [[REG:r[0-9]+]], [[CPI:\.LCPI[_0-9]+]]
|
2014-06-08 04:29:27 +08:00
|
|
|
; CHECK: bx [[REG]]
|
2016-01-26 08:03:25 +08:00
|
|
|
; CHECK: .p2align 2
|
2014-06-08 04:29:27 +08:00
|
|
|
; CHECK: [[CPI]]:
|
|
|
|
; CHECK: .long callee
|
|
|
|
|