freebsd-nq/test/CodeGen/Thumb/pop.ll

16 lines
365 B
LLVM
Raw Normal View History

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 {
; CHECK-LABEL: t:
; CHECK: pop {[[POP_REG:r[0-3]]]}
2009-11-19 08:59:28 +00:00
; CHECK-NEXT: add sp, #12
; CHECK-NEXT: bx [[POP_REG]]
2009-10-14 17:57:32 +00:00
entry:
%a.addr = alloca i8, i32 4
call void @llvm.va_start(i8* %a.addr)
2009-10-14 17:57:32 +00:00
ret void
}
declare void @llvm.va_start(i8*) nounwind