summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM64/join-reserved.ll
blob: e99168b5eba3fdf7ea4cdc4cb55198a53e3b03a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llc < %s -verify-machineinstrs | FileCheck %s
target triple = "arm64-apple-macosx10"

; Make sure that a store to [sp] addresses off sp directly.
; A move isn't necessary.
; <rdar://problem/11492712>
; CHECK-LABEL: g:
; CHECK: str xzr, [sp]
; CHECK: bl
; CHECK: ret
define void @g() nounwind ssp {
entry:
  tail call void (i32, ...)* @f(i32 0, i32 0) nounwind
  ret void
}

declare void @f(i32, ...)