xref: /llvm-project/llvm/test/CodeGen/AArch64/sme-lazy-save-call-remarks.ll (revision d313614b60ff1194f48e5f0b1bb8d63d2b7eb52d)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc -mtriple=aarch64 -mattr=+sme --pass-remarks-analysis=sme -o /dev/null < %s 2>&1 | FileCheck %s
3
4declare void @private_za_callee()
5declare float @llvm.cos.f32(float)
6
7define void @test_lazy_save_1_callee() nounwind "aarch64_inout_za" {
8; CHECK: remark: <unknown>:0:0: call from 'test_lazy_save_1_callee' to 'private_za_callee' sets up a lazy save for ZA
9  call void @private_za_callee()
10  ret void
11}
12
13define void @test_lazy_save_2_callees() nounwind "aarch64_inout_za" {
14; CHECK: remark: <unknown>:0:0: call from 'test_lazy_save_2_callees' to 'private_za_callee' sets up a lazy save for ZA
15  call void @private_za_callee()
16; CHECK: remark: <unknown>:0:0: call from 'test_lazy_save_2_callees' to 'private_za_callee' sets up a lazy save for ZA
17  call void @private_za_callee()
18  ret void
19}
20
21define float @test_lazy_save_expanded_intrinsic(float %a) nounwind "aarch64_inout_za" {
22; CHECK: remark: <unknown>:0:0: call from 'test_lazy_save_expanded_intrinsic' to 'cosf' sets up a lazy save for ZA
23  %res = call float @llvm.cos.f32(float %a)
24  ret float %res
25}
26