[clang] [compiler-rt] [llvm] [PGO] Initialize GCOV Writeout and Reset Functions in the Runtime on AIX (PR #108570)
Qiongsi Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 06:55:43 PDT 2024
================
@@ -0,0 +1,129 @@
+; Tests if the __llvm_gcov_ctr section contains a .ref pseudo-op
+; referring to the __llvm_covinit section.
+; RUN: llc < %s | FileCheck --check-prefixes=CHECK,CHECK-RW %s
+; RUN: llc -mxcoff-roptr < %s | FileCheck --check-prefixes=CHECK,CHECK-RO %s
+
+target datalayout = "E-m:a-p:32:32-Fi32-i64:64-n32"
+target triple = "powerpc-ibm-aix"
+
+; CHECK-RW: .csect __llvm_covinit[RW],3
+; CHECK-RO: .csect __llvm_covinit[RO],3
+; CHECK: .vbyte 4, __llvm_gcov_writeout[DS]
+; CHECK-NEXT: .vbyte 4, __llvm_gcov_reset[DS]
----------------
qiongsiwu wrote:
Oh I see - yeah I think with the updated test I am on the same page with you. We do not skip any lines after the first `csect` changing directive now.
Thanks for the clarification!
https://github.com/llvm/llvm-project/pull/108570
More information about the cfe-commits
mailing list