summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/arm64-windows-tailcall.ll
blob: 4198e10a9a13d4f767e14b885aa09db29ab8a75b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
; FIXME: Add tests for global-isel/fast-isel.

; RUN: llc < %s -mtriple=arm64-windows | FileCheck %s

%class.C = type { [1 x i32] }

define dso_local void @"?bar"(%class.C* inreg noalias sret %agg.result) {
entry:
; CHECK-LABEL: bar
; CHECK: mov x19, x0
; CHECK: bl "?foo"
; CHECK: mov x0, x19

  tail call void @"?foo"(%class.C* dereferenceable(4) %agg.result)
  ret void
}

declare dso_local void @"?foo"(%class.C* dereferenceable(4))
OpenPOWER on IntegriCloud