aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/ARM/2010-11-29-PrologueBug.ll
blob: b3b6c77f9bb8f9d44fb7393b3724f4243be3e524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
; RUN: llc < %s -mtriple=armv7-apple-ios   | FileCheck %s
; RUN: llc < %s -mtriple=thumbv7-apple-ios | FileCheck %s
; rdar://8690640

define ptr @t(ptr %x) nounwind "frame-pointer"="all" {
entry:
; CHECK-LABEL: t:
; CHECK: push
; CHECK: mov r7, sp
; CHECK: bl _foo
; CHECK: bl _foo
; CHECK: pop
; CHECK: b

  %0 = tail call ptr @foo(ptr %x) nounwind
  %1 = tail call ptr @foo(ptr %0) nounwind
  %2 = tail call ptr @foo(ptr %1) nounwind
  ret ptr %2
}

declare ptr @foo(ptr)