1; RUN: llc < %s -mtriple=armv7-apple-ios | FileCheck %s 2; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s 3; rdar://8690640 4 5define i32* @t(i32* %x) nounwind { 6entry: 7; CHECK-LABEL: t: 8; CHECK: push 9; CHECK: mov r7, sp 10; CHECK: bl _foo 11; CHECK: bl _foo 12; CHECK: bl _foo 13; CHECK: pop {r7, pc} 14 15 %0 = tail call i32* @foo(i32* %x) nounwind 16 %1 = tail call i32* @foo(i32* %0) nounwind 17 %2 = tail call i32* @foo(i32* %1) nounwind 18 ret i32* %2 19} 20 21declare i32* @foo(i32*) 22