Tim Northover | dab4db5 | 2013-07-06 12:58:45 +0000 | [diff] [blame^] | 1 | ; 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 | |||||
7 | declare i8* @g(i8*) | ||||
8 | |||||
9 | define i8* @f(i8* %a) { | ||||
10 | entry: | ||||
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 | } |