xref: /llvm-project/llvm/test/CodeGen/AArch64/GlobalISel/tail-call-no-save-fp-lr.ll (revision 77eb1b8f63c120f90ba529a5da2d392e165a4bc4)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc %s -verify-machineinstrs -mtriple aarch64-apple-darwin -global-isel -global-isel-abort=1 -frame-pointer=non-leaf -o - 2>&1 | FileCheck %s
3
4; Check that we get a tail call to foo without saving fp/lr.
5define void @bar(i32 %a) {
6; CHECK-LABEL: bar:
7; CHECK:       ; %bb.0: ; %entry
8; CHECK-NEXT:    b _zoo
9entry:
10  tail call void @zoo(i32 undef)
11  ret void
12}
13
14define void @zoo(i32 %a) {
15; CHECK-LABEL: zoo:
16; CHECK:       ; %bb.0: ; %entry
17; CHECK-NEXT:    ret
18entry:
19  ret void
20}
21