blob: 5f85ec098a64867bf0ce20195d8ef02c10e8147a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-as < %s | llc -march=arm
2; RUN: llvm-as < %s | llc -march=thumb | grep {ldr.*LCP} | wc -l | grep 5
3
4define void @test1() {
5 %tmp = alloca [ 64 x i32 ] , align 4
6 ret void
7}
8
9define void @test2() {
10 %tmp = alloca [ 4168 x i8 ] , align 4
11 ret void
12}
13
14define i32 @test3() {
15 %retval = alloca i32, align 4
16 %tmp = alloca i32, align 4
17 %a = alloca [805306369 x i8], align 16
18 store i32 0, i32* %tmp
19 %tmp1 = load i32* %tmp
20 ret i32 %tmp1
21}