llvm.org GIT mirror llvm / a17588c
Add a DYNAMIC_STACKALLOC test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33959 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
1 changed file(s) with 30 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=arm &&
1 ; RUN: llvm-as < %s | llc -march=arm -enable-thumb &&
2 ; RUN: llvm-as < %s | llc -march=arm -enable-thumb | not grep "ldr sp"
3
4 %struct.state = type { i32, %struct.info*, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* }
5 %struct.info = type { i32, i32, i32, i32, i32, i32, i32, i8* }
6
7 define void @f1(%struct.state* %v) {
8 %tmp6 = load i32* null
9 %tmp8 = alloca float, i32 %tmp6
10 store i32 1, i32* null
11 br i1 false, label %bb123.preheader, label %return
12
13 bb123.preheader:
14 br i1 false, label %bb43, label %return
15
16 bb43:
17 call fastcc void @f2( float* %tmp8, float* null, i32 0 )
18 %tmp70 = load i32* null
19 %tmp85 = getelementptr float* %tmp8, i32 0
20 call fastcc void @f3( float* null, float* null, float* %tmp85, i32 %tmp70 )
21 ret void
22
23 return:
24 ret void
25 }
26
27 declare fastcc void @f2(float*, float*, i32)
28
29 declare fastcc void @f3(float*, float*, float*, i32)