1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -O0 -mtriple=aarch64-unknown-linux-gnu -verify-machineinstrs < %s | FileCheck %s
4 define void @test() nounwind {
7 ; CHECK-NEXT: sub sp, sp, #32
8 ; CHECK-NEXT: str x30, [sp, #16] // 8-byte Folded Spill
9 ; CHECK-NEXT: mov x1, xzr
10 ; CHECK-NEXT: str x1, [sp, #8] // 8-byte Folded Spill
11 ; CHECK-NEXT: mov x0, x1
12 ; CHECK-NEXT: bl returns_arg
13 ; CHECK-NEXT: ldr x1, [sp, #8] // 8-byte Folded Reload
14 ; CHECK-NEXT: mov x0, x1
15 ; CHECK-NEXT: bl accepts_arg
16 ; CHECK-NEXT: ldr x30, [sp, #16] // 8-byte Folded Reload
17 ; CHECK-NEXT: add sp, sp, #32
19 %x = call i128 @returns_arg(i128 0)
20 call void @accepts_arg(i128 %x)
24 declare i128 @returns_arg(i128 returned)
25 declare void @accepts_arg(i128)