https://github.com/perry-ca created https://github.com/llvm/llvm-project/pull/192132
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. >From edcadb7ad9ff43702285720718b62123bcafc2c9 Mon Sep 17 00:00:00 2001 From: Sean Perry <[email protected]> Date: Tue, 14 Apr 2026 16:46:44 -0400 Subject: [PATCH] Search for @_thisIsNotAPipe vs _thisIsNotAPipe --- clang/test/CodeGen/2008-07-31-asm-labels.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
