summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/GlobalISel/tail-call-no-save-fp-lr.ll
blob: 1c3630f42514b85a027865b75905f27abf52367a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc %s -verify-machineinstrs -mtriple aarch64-apple-darwin -global-isel -global-isel-abort=1 -frame-pointer=non-leaf -o - 2>&1 | FileCheck %s

; Check that we get a tail call to foo without saving fp/lr.
define void @bar(i32 %a) #1 {
; CHECK-LABEL: bar:
; CHECK:       ; %bb.0: ; %entry
; CHECK-NEXT:    b _zoo
entry:
  tail call void @zoo(i32 undef)
  ret void
}

define void @zoo(i32 %a) {
; CHECK-LABEL: zoo:
; CHECK:       ; %bb.0: ; %entry
; CHECK-NEXT:    ret
entry:
  ret void
}

attributes #1 = { "frame-pointer"="all" }

OpenPOWER on IntegriCloud