Home | History | Annotate | Download | only in ARM
      1 ; RUN: llc < %s -mtriple=armv7-apple-ios   | FileCheck %s
      2 ; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
      3 ; rdar://8690640
      4 
      5 define i32* @t(i32* %x) nounwind {
      6 entry:
      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 
     21 declare i32* @foo(i32*)
     22