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