Compiler projects using llvm
; 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) {
; 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
}