llvm-for-llvmta/test/CodeGen/AArch64/GlobalISel/tail-call-no-save-fp-lr.ll

21 lines
568 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
; 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
}