1 ; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
2 ; RUN: grep {add sp, sp, #16} | count 1
3 ; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnu | \
4 ; RUN: grep {add sp, sp, #12} | count 2
6 define i32 @f(i32 %a, ...) {
8 %a_addr = alloca i32 ; <i32*> [#uses=1]
9 %retval = alloca i32, align 4 ; <i32*> [#uses=2]
10 %tmp = alloca i32, align 4 ; <i32*> [#uses=2]
11 "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
12 store i32 %a, i32* %a_addr
13 store i32 0, i32* %tmp
14 %tmp1 = load i32* %tmp ; <i32> [#uses=1]
15 store i32 %tmp1, i32* %retval
18 return: ; preds = %entry
19 %retval2 = load i32* %retval ; <i32> [#uses=1]