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