xref: /llvm-project/llvm/test/CodeGen/ARM/large-stack.ll (revision fa6532a3b9792739ce28063f3774b064cfa21c98)
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
6define void @test1() {
7    %tmp = alloca [ 64 x i32 ] , align 4
8    ret void
9}
10
11define void @test2() {
12    %tmp = alloca [ 4168 x i8 ] , align 4
13    ret void
14}
15
16define 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}
24