Combine two tests.
[oota-llvm.git] / test / CodeGen / ARM / large-stack.ll
1 ; RUN: llvm-as < %s | llc -march=arm &&
2 ; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
3 ; RUN: llvm-as < %s | llc -march=arm -enable-thumb | grep 'ldr.*LCP' | wc -l | grep 5
4
5 define void @test1() {
6     %tmp = alloca [ 64 x i32 ] , align 4
7     ret void
8 }
9
10 define void @test2() {
11     %tmp = alloca [ 4168 x i8 ] , align 4
12     ret void
13 }
14
15 define i32 @test3() {
16         %retval = alloca i32, align 4
17         %tmp = alloca i32, align 4
18         %a = alloca [805306369 x i8], align 16
19         store i32 0, i32* %tmp
20         %tmp1 = load i32* %tmp
21         ret i32 %tmp1
22 }