blob: 9fbdc9d24b012771e79ada0c1823187f91fefc02 [file] [log] [blame]
Tim Northoverdab4db52013-07-06 12:58:45 +00001; RUN: llc -mtriple=thumbv7-linux-gnueabi -O0 -arm-tail-calls < %s | FileCheck %s
2
3; Primarily a non-crash test: Thumbv7 Linux does not have FastISel support,
4; which led (via a convoluted route) to DAG nodes after a TC_RETURN that
5; couldn't possibly work.
6
7declare i8* @g(i8*)
8
9define i8* @f(i8* %a) {
10entry:
11 %0 = tail call i8* @g(i8* %a)
12 ret i8* %0
13; CHECK: b g
14; CHECK-NOT: ldr
15; CHECK-NOT: str
16}