llvm.org GIT mirror llvm / eb181e8 test / CodeGen / Thumb / pop.ll
eb181e8

Tree @eb181e8 (Download .tar.gz)

pop.ll @eb181e8

10469f8
 
 
1e81966
8b2b8a1
b2dab38
2ef9c8a
b2dab38
10469f8
d89c0ab
 
10469f8
 
d89c0ab
 
; RUN: llc < %s -mtriple=thumb-apple-darwin | FileCheck %s
; rdar://7268481

define void @t(i8* %a, ...) nounwind {
; CHECK-LABEL:      t:
; CHECK:      pop {[[POP_REG:r[0-3]]]}
; CHECK-NEXT: add sp, #12
; CHECK-NEXT: bx [[POP_REG]]
entry:
  %a.addr = alloca i8, i32 4
  call void @llvm.va_start(i8* %a.addr)
  ret void
}

declare void @llvm.va_start(i8*) nounwind