summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/fast-tail-call.ll
blob: 9fbdc9d24b012771e79ada0c1823187f91fefc02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: llc -mtriple=thumbv7-linux-gnueabi -O0 -arm-tail-calls < %s | FileCheck %s

; Primarily a non-crash test: Thumbv7 Linux does not have FastISel support,
; which led (via a convoluted route) to DAG nodes after a TC_RETURN that
; couldn't possibly work.

declare i8* @g(i8*)

define i8* @f(i8* %a) {
entry:
  %0 = tail call i8* @g(i8* %a)
  ret i8* %0
; CHECK: b g
; CHECK-NOT: ldr
; CHECK-NOT: str
}