2009-10-14 17:57:32 +00:00
|
|
|
; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
|
|
|
|
; rdar://7268481
|
|
|
|
|
2010-07-13 17:19:57 +00:00
|
|
|
define void @t(i8* %a, ...) nounwind {
|
2013-12-22 00:04:03 +00:00
|
|
|
; CHECK-LABEL: t:
|
2015-12-30 11:46:15 +00:00
|
|
|
; CHECK: pop {[[POP_REG:r[0-3]]]}
|
2009-11-19 08:59:28 +00:00
|
|
|
; CHECK-NEXT: add sp, #12
|
2015-12-30 11:46:15 +00:00
|
|
|
; CHECK-NEXT: bx [[POP_REG]]
|
2009-10-14 17:57:32 +00:00
|
|
|
entry:
|
2015-01-18 16:17:27 +00:00
|
|
|
%a.addr = alloca i8, i32 4
|
|
|
|
call void @llvm.va_start(i8* %a.addr)
|
2009-10-14 17:57:32 +00:00
|
|
|
ret void
|
|
|
|
}
|
2015-01-18 16:17:27 +00:00
|
|
|
|
|
|
|
declare void @llvm.va_start(i8*) nounwind
|