[llvm] [NFC][Test] Fix PowerPC test gcov_ctr_ref_init.ll (PR #117577)

Zaara Syeda via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 08:56:20 PST 2024


https://github.com/syzaara created https://github.com/llvm/llvm-project/pull/117577

None

>From bcac476fd1b252ed814b4e447bd4aa51187876dd Mon Sep 17 00:00:00 2001
From: Zaara Syeda <syzaara at ca.ibm.com>
Date: Mon, 25 Nov 2024 17:07:56 +0000
Subject: [PATCH] [NFC][Test] Fix PowerPC test gcov_ctr_ref_init.ll

---
 llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll b/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
index 4969aec0a14942..fc7dacd873b07d 100644
--- a/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
+++ b/llvm/test/CodeGen/PowerPC/gcov_ctr_ref_init.ll
@@ -12,11 +12,16 @@ target triple = "powerpc-ibm-aix"
 ; CHECK-NEXT: L..__llvm_covinit_functions:
 ; CHECK-NEXT:     .vbyte  4, __llvm_gcov_writeout[DS]
 ; CHECK-NEXT:     .vbyte  4, __llvm_gcov_reset[DS]
-; 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
 ; CHECK:    .csect __llvm_gcov_ctr_section[RW],3
+; CHECK-NEXT:    .lglobl __llvm_gcov_ctr                 # @_MergedGlobals
+; CHECK-NEXT:    .lglobl __llvm_gcov_ctr.1
+; CHECK-NEXT:    .align  3
+; CHECK-NEXT: L.._MergedGlobals:
+; CHECK-NEXT: __llvm_gcov_ctr:
+; CHECK-NEXT:     .space  8
+; CHECK-NEXT: __llvm_gcov_ctr.1:
+; CHECK-NEXT:     .space  8
+; CHECK:     .csect __llvm_gcov_ctr_section[RW],3
 ; CHECK-RW-NEXT:    .ref __llvm_covinit[RW]
 ; CHECK-RO-NEXT:    .ref __llvm_covinit[RO]
 



More information about the llvm-commits mailing list