Remove the local register allocator.
[oota-llvm.git] / test / CodeGen / Thumb / 2010-01-15-local-alloc-spill-physical.ll
1 ; RUN: llc < %s -regalloc=fast -relocation-model=pic | FileCheck %s
2
3 target triple = "thumbv6-apple-darwin10"
4
5 @fred = internal global i32 0              ; <i32*> [#uses=1]
6
7 define arm_apcscc void @foo() nounwind {
8 entry:
9 ; CHECK: str r0, [sp
10   %0 = call arm_apcscc  i32 (...)* @bar() nounwind ; <i32> [#uses=1]
11 ; CHECK: blx _bar
12 ; CHECK: ldr r1, [sp
13   store i32 %0, i32* @fred, align 4
14   br label %return
15
16 return:                                           ; preds = %entry
17   ret void
18 }
19
20 declare arm_apcscc i32 @bar(...)