1 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=EABI
2 ; RUN: llc < %s -march=arm -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=OABI
4 define i32 @f(i32 %a, ...) {
6 %a_addr = alloca i32 ; <i32*> [#uses=1]
7 %retval = alloca i32, align 4 ; <i32*> [#uses=2]
8 %tmp = alloca i32, align 4 ; <i32*> [#uses=2]
9 "alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
10 store i32 %a, i32* %a_addr
11 store i32 0, i32* %tmp
12 %tmp1 = load i32* %tmp ; <i32> [#uses=1]
13 store i32 %tmp1, i32* %retval
16 return: ; preds = %entry
17 %retval2 = load i32* %retval ; <i32> [#uses=1]
19 ; EABI: add sp, sp, #12
20 ; EABI: add sp, sp, #16
21 ; OABI: add sp, sp, #12
22 ; OABI: add sp, sp, #12