[clang] Search for @_thisIsNotAPipe vs _thisIsNotAPipe (PR #192132)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 14 13:50:22 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Sean Perry (perry-ca)
<details>
<summary>Changes</summary>
z/OS has a table of mapped names in the IR. Counting the hits for just the name leads to one more hit than expected. Search for the name with the @ char to make sure the right occurrences are being counted.
---
Full diff: https://github.com/llvm/llvm-project/pull/192132.diff
1 Files Affected:
- (modified) clang/test/CodeGen/2008-07-31-asm-labels.c (+3-3)
``````````diff
diff --git a/clang/test/CodeGen/2008-07-31-asm-labels.c b/clang/test/CodeGen/2008-07-31-asm-labels.c
index 71be9378233d4..84c7f447fc599 100644
--- a/clang/test/CodeGen/2008-07-31-asm-labels.c
+++ b/clang/test/CodeGen/2008-07-31-asm-labels.c
@@ -1,11 +1,11 @@
// RUN: %clang_cc1 -emit-llvm -o %t %s
// RUN: not grep "@pipe()" %t
-// RUN: grep '_thisIsNotAPipe' %t | count 3
+// RUN: grep '@_thisIsNotAPipe' %t | count 3
// RUN: not grep '@g0' %t
-// RUN: grep '_renamed' %t | count 2
+// RUN: grep '@_renamed' %t | count 2
// RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s
// RUN: not grep "@pipe()" %t
-// RUN: grep '_thisIsNotAPipe' %t | count 3
+// RUN: grep '@_thisIsNotAPipe' %t | count 3
// <rdr://6116729>
void pipe() asm("_thisIsNotAPipe");
``````````
</details>
https://github.com/llvm/llvm-project/pull/192132
More information about the cfe-commits
mailing list