[clang] 398049f - Search for @_thisIsNotAPipe vs _thisIsNotAPipe (#192132)

via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 29 06:47:55 PDT 2026


Author: Sean Perry
Date: 2026-04-29T09:47:49-04:00
New Revision: 398049f309e0f8cd42e9b35b7518381a966132d2

URL: https://github.com/llvm/llvm-project/commit/398049f309e0f8cd42e9b35b7518381a966132d2
DIFF: https://github.com/llvm/llvm-project/commit/398049f309e0f8cd42e9b35b7518381a966132d2.diff

LOG: Search for @_thisIsNotAPipe vs _thisIsNotAPipe (#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.

Added: 
    

Modified: 
    clang/test/CodeGen/2008-07-31-asm-labels.c

Removed: 
    


################################################################################
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");


        


More information about the cfe-commits mailing list