1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/CodeGen/ARM/vararg_no_start.ll
Reid Kleckner 60c1740ad6 ARM / x86_64 varargs: Don't save regparms in prologue without va_start
There's no need to do this if the user doesn't call va_start. In the
future, we're going to have thunks that forward these register
parameters with musttail calls, and they won't need these spills for
handling va_start.

Most of the test suite changes are adding va_start calls to existing
tests to keep things working.

llvm-svn: 216294
2014-08-22 21:59:26 +00:00

11 lines
265 B
LLVM

; RUN: llc -mtriple=arm-darwin < %s | FileCheck %s
; RUN: llc -O0 -mtriple=arm-darwin < %s | FileCheck %s
define void @foo(i8*, ...) {
ret void
}
; CHECK-LABEL: {{^_?}}foo:
; CHECK-NOT: str
; CHECK: {{bx lr|mov pc, lr}}
declare void @llvm.va_start(i8*) nounwind