2016-05-11 03:17:47 +08:00
|
|
|
; RUN: llc < %s -mtriple=armv7-apple-ios | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
|
2010-11-30 06:43:27 +08:00
|
|
|
; rdar://8690640
|
|
|
|
|
2019-12-25 07:52:21 +08:00
|
|
|
define i32* @t(i32* %x) nounwind "frame-pointer"="all" {
|
2010-11-30 06:43:27 +08:00
|
|
|
entry:
|
2016-05-11 03:17:47 +08:00
|
|
|
; CHECK-LABEL: t:
|
|
|
|
; CHECK: push
|
|
|
|
; CHECK: mov r7, sp
|
|
|
|
; CHECK: bl _foo
|
|
|
|
; CHECK: bl _foo
|
|
|
|
; CHECK: bl _foo
|
|
|
|
; CHECK: pop {r7, pc}
|
2010-11-30 06:43:27 +08:00
|
|
|
|
|
|
|
%0 = tail call i32* @foo(i32* %x) nounwind
|
|
|
|
%1 = tail call i32* @foo(i32* %0) nounwind
|
|
|
|
%2 = tail call i32* @foo(i32* %1) nounwind
|
|
|
|
ret i32* %2
|
|
|
|
}
|
|
|
|
|
|
|
|
declare i32* @foo(i32*)
|