2009-10-02 04:54:53 +08:00
|
|
|
; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
|
|
|
|
; rdar://7268481
|
|
|
|
|
2010-06-17 23:18:27 +08:00
|
|
|
define void @t(i8* %a, ...) nounwind {
|
2013-07-14 14:24:09 +08:00
|
|
|
; CHECK-LABEL: t:
|
2015-07-21 05:42:14 +08:00
|
|
|
; CHECK: pop {[[POP_REG:r[0-3]]]}
|
2009-11-19 14:57:41 +08:00
|
|
|
; CHECK-NEXT: add sp, #12
|
2015-07-21 05:42:14 +08:00
|
|
|
; CHECK-NEXT: bx [[POP_REG]]
|
2009-10-02 04:54:53 +08:00
|
|
|
entry:
|
2014-08-23 05:59:26 +08:00
|
|
|
%a.addr = alloca i8, i32 4
|
|
|
|
call void @llvm.va_start(i8* %a.addr)
|
2009-10-02 04:54:53 +08:00
|
|
|
ret void
|
|
|
|
}
|
2014-08-23 05:59:26 +08:00
|
|
|
|
|
|
|
declare void @llvm.va_start(i8*) nounwind
|