1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=aarch64-none-linux -O0 -tailcallopt < %s | FileCheck %s
11 define fastcc i64 @foo(i64 %0, i64 %1, i64 %2, i64 %3, i64 %4, i64 %5, i64 %6, i64 %7, i64 %8) {
14 ; CHECK-NEXT: add sp, sp, #16
19 ; https://github.com/llvm/llvm-project/issues/60972
20 define fastcc i64 @baz() {
22 ; CHECK: // %bb.0: // %entry
23 ; CHECK-NEXT: sub sp, sp, #32
24 ; CHECK-NEXT: str x30, [sp, #16] // 8-byte Folded Spill
25 ; CHECK-NEXT: .cfi_def_cfa_offset 32
26 ; CHECK-NEXT: .cfi_offset w30, -16
27 ; CHECK-NEXT: mov x8, sp
28 ; CHECK-NEXT: mov x7, xzr
29 ; CHECK-NEXT: str xzr, [x8]
30 ; CHECK-NEXT: mov x0, x7
31 ; CHECK-NEXT: mov x1, x7
32 ; CHECK-NEXT: mov x2, x7
33 ; CHECK-NEXT: mov x3, x7
34 ; CHECK-NEXT: mov x4, x7
35 ; CHECK-NEXT: mov x5, x7
36 ; CHECK-NEXT: mov x6, x7
38 ; CHECK-NEXT: sub sp, sp, #16
39 ; CHECK-NEXT: str x0, [sp, #8] // 8-byte Folded Spill
41 ; CHECK-NEXT: ldr x0, [sp, #8] // 8-byte Folded Reload
42 ; CHECK-NEXT: ldr x30, [sp, #16] // 8-byte Folded Reload
43 ; CHECK-NEXT: add sp, sp, #32
46 %0 = tail call fastcc i64 @foo(i64 0, i64 0, i64 0, i64 0, i64 0, i64 0, i64 0, i64 0, i64 0)