1 ; RUN: llc < %s -mtriple=armv7-linux-gnueabihf | FileCheck %s -check-prefix=EABI
2 ; RUN: llc < %s -mtriple=arm-linux-gnu | FileCheck %s -check-prefix=OABI
4 define i32 @f(i32 %a, ...) {
6 %a_addr = alloca i32 ; <ptr> [#uses=1]
7 %retval = alloca i32, align 4 ; <ptr> [#uses=2]
8 %tmp = alloca i32, align 4 ; <ptr> [#uses=2]
9 store i32 %a, ptr %a_addr
11 %tmp1 = load i32, ptr %tmp ; <i32> [#uses=1]
12 store i32 %tmp1, ptr %retval
13 call void @llvm.va_start(ptr null)
14 call void asm sideeffect "", "~{d8}"()
17 return: ; preds = %entry
18 %retval2 = load i32, ptr %retval ; <i32> [#uses=1]
20 ; EABI: add sp, sp, #16
22 ; EABI: add sp, sp, #4
23 ; EABI: add sp, sp, #12
25 ; OABI: add sp, sp, #24
28 declare void @llvm.va_start(ptr) nounwind