llvm/llvm/test/CodeGen/AArch64/pacbti-llvm-generated-funcs-2.ll

;; RUN: llc --mattr=+v8.3a %s -o - | FileCheck %s
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64-unknown-linux"

@__llvm_gcov_ctr = internal global [1 x i64] zeroinitializer
@0 = private unnamed_addr constant [7 x i8] c"m.gcda\00", align 1
@llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 0, ptr @__llvm_gcov_init, ptr null }]

define dso_local i32 @f() local_unnamed_addr #0 {
entry:
  ret i32 0
}
;; CHECK-LABEL: f:
;; CHECK: pacibsp

declare void @llvm_gcda_start_file(ptr, i32, i32) local_unnamed_addr

declare void @llvm_gcda_emit_function(i32, i32, i32) local_unnamed_addr

declare void @llvm_gcda_emit_arcs(i32, ptr) local_unnamed_addr

declare void @llvm_gcda_summary_info() local_unnamed_addr

declare void @llvm_gcda_end_file() local_unnamed_addr

define internal void @__llvm_gcov_writeout() unnamed_addr #1 {
entry:
  tail call void @llvm_gcda_start_file(ptr @0, i32 875575338, i32 0)
  tail call void @llvm_gcda_emit_function(i32 0, i32 0, i32 0)
  tail call void @llvm_gcda_emit_arcs(i32 1, ptr @__llvm_gcov_ctr)
  tail call void @llvm_gcda_summary_info()
  tail call void @llvm_gcda_end_file()
  ret void
}
;; CHECK-LABEL: __llvm_gcov_writeout:
;; CHECK:       .cfi_b_key_frame
;; CHECK-NEXT:  pacibsp
;; CHECK:       .cfi_negate_ra_state
;; CHECK-NEXT:  .cfi_def_cfa_offset

define internal void @__llvm_gcov_reset() unnamed_addr #2 {
entry:
  store i64 0, ptr @__llvm_gcov_ctr, align 8
  ret void
}
;; CHECK-LABEL: __llvm_gcov_reset:
;; CHECK:       pacibsp

declare void @llvm_gcov_init(ptr, ptr) local_unnamed_addr

define internal void @__llvm_gcov_init() unnamed_addr #1 {
entry:
  tail call void @llvm_gcov_init(ptr nonnull @__llvm_gcov_writeout, ptr nonnull @__llvm_gcov_reset)
  ret void
}
;; CHECK-LABEL: __llvm_gcov_init:
;; CHECK:      .cfi_b_key_frame
;; CHECK-NEXT:  pacibsp
;; CHECK-NEXT:  .cfi_negate_ra_state
;; CHECK-NOT:   .cfi_
;; CHECK:       .cfi_endproc

attributes #0 = { norecurse nounwind readnone "sign-return-address"="all" "sign-return-address-key"="b_key" }
attributes #1 = { noinline "sign-return-address"="all" "sign-return-address-key"="b_key" }
attributes #2 = { nofree noinline norecurse nounwind writeonly "sign-return-address"="all" "sign-return-address-key"="b_key" }

!llvm.module.flags = !{!0, !1}

!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = !{i32 1, !"wchar_size", i32 4}