Skip to content

Fix failing test gcov_ctr_ref_init.ll #114428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

syzaara
Copy link
Contributor

@syzaara syzaara commented Oct 31, 2024

Fix test failing after merge of commit: ccddd13

Test failing after merge of PR:
Enable aggressive constant merge in GlobalMerge for AIX
@llvmbot
Copy link
Member

llvmbot commented Oct 31, 2024

@llvm/pr-subscribers-backend-powerpc

Author: Zaara Syeda (syzaara)

Changes

Test failing after merge of PR:
Enable aggressive constant merge in GlobalMerge for AIX


Full diff: https://github.com/llvm/llvm-project/pull/114428.diff

1 Files Affected:

  • (modified) llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll (+2-1)
diff --git a/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll b/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
index 4710d5c14e5b19..1e819652fad473 100644
--- a/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
+++ b/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
@@ -20,11 +20,12 @@ target triple = "powerpc-ibm-aix"
 ; CHECK-NEXT: __llvm_gcov_ctr:
 ; CHECK-NEXT:     .space  16
 ; CHECK-NEXT: __llvm_gcov_ctr.1:
-; CHECK-NEXT:     .extern .llvm_gcda_start_file[PR]
+; CHECK:          .extern .llvm_gcda_start_file[PR]
 ; CHECK-NEXT:     .extern .llvm_gcda_emit_function[PR]
 ; CHECK-NEXT:     .extern .llvm_gcda_emit_arcs[PR]
 ; CHECK-NEXT:     .extern .llvm_gcda_summary_info[PR]
 ; CHECK-NEXT:     .extern .llvm_gcda_end_file[PR]
+; CHECK-NEXT:     .csect __llvm_gcov_ctr_section[RW],3
 ; CHECK-RW-NEXT:    .ref __llvm_covinit[RW]
 ; CHECK-RO-NEXT:    .ref __llvm_covinit[RO]
 

@syzaara syzaara merged commit 1559568 into llvm:main Oct 31, 2024
5 of 6 checks passed
smallp-o-p pushed a commit to smallp-o-p/llvm-project that referenced this pull request Nov 3, 2024
Fix test failing after merge of commit:
ccddd13
NoumanAmir657 pushed a commit to NoumanAmir657/llvm-project that referenced this pull request Nov 4, 2024
Fix test failing after merge of commit:
ccddd13
; The first .csect directive below is specifying the content of the csect.
; The second .csect directive below is used to insert the .ref pseudo
; instruction.
; CHECK: .csect __llvm_gcov_ctr_section[RW],3
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@syzaara:
The content of the csect is significant (and should be checked, not just skipped).
The change that added this test was responsible for creating the section so that references to the counters would, in turn, cause the initialization symbols to be kept.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Posted #117577 to address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants