summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/2010-11-29-PrologueBug.ll
blob: 4b89ea32536d597cde4d58790190b7e9323139ff (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 i32* @t(i32* %x) nounwind "frame-pointer"="all" {
entry:
; CHECK-LABEL: t:
; CHECK: push
; CHECK: mov r7, sp
; CHECK: bl _foo
; CHECK: bl _foo
; CHECK: bl _foo
; CHECK: pop {r7, pc}

  %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*)
OpenPOWER on IntegriCloud